Skip to content
Snippets Groups Projects
Commit 68ed56baabf5 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

rust-index: don't use mutable borrow to computed filtered heads

This does not need to mutate the index.

This is the prime suspect for some RuntimeError raised during some pushes.
parent a43a6d4b3be6
No related branches found
No related tags found
2 merge requests!812Merge stable into default,!800rust-index: don't use unnecessary mutable borrow
......@@ -873,7 +873,7 @@
py: Python,
filtered_revs: &PyObject,
) -> PyResult<PyObject> {
let index = &mut *self.index(py).borrow_mut();
let index = &*self.index(py).borrow();
let filtered_revs = rev_pyiter_collect(py, filtered_revs, index)?;
if let Some(new_heads) = index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment