##// END OF EJS Templates
rust-index: don't use mutable borrow to computed filtered heads...
marmoute -
r52360:68ed56ba stable
parent child Browse files
Show More
@@ -873,7 +873,7 b' impl Index {'
873 py: Python,
873 py: Python,
874 filtered_revs: &PyObject,
874 filtered_revs: &PyObject,
875 ) -> PyResult<PyObject> {
875 ) -> PyResult<PyObject> {
876 let index = &mut *self.index(py).borrow_mut();
876 let index = &*self.index(py).borrow();
877 let filtered_revs = rev_pyiter_collect(py, filtered_revs, index)?;
877 let filtered_revs = rev_pyiter_collect(py, filtered_revs, index)?;
878
878
879 if let Some(new_heads) = index
879 if let Some(new_heads) = index
General Comments 0
You need to be logged in to leave comments. Login now