rust-index: using the Rust index in nodemap updating methods
authorGeorges Racinet <georges.racinet@octobus.net>
Mon, 30 Oct 2023 11:03:57 +0100
changeset 51206 952e3cd7568f
parent 51205 002b49905aac
child 51207 b67cd0d0e976
rust-index: using the Rust index in nodemap updating methods
rust/hg-cpython/src/revlog.rs
--- a/rust/hg-cpython/src/revlog.rs	Thu Nov 02 11:19:54 2023 +0100
+++ b/rust/hg-cpython/src/revlog.rs	Mon Oct 30 11:03:57 2023 +0100
@@ -517,7 +517,7 @@
         py: Python,
         nt: &mut NodeTree,
     ) -> PyResult<PyObject> {
-        let index = self.cindex(py).borrow();
+        let index = self.index(py).borrow();
         for r in 0..self.len(py)? {
             let rev = Revision(r as BaseRevision);
             // in this case node() won't ever return None
@@ -623,7 +623,7 @@
             .extract::<BaseRevision>(py)?
             .into();
         self.docket(py).borrow_mut().replace(docket.clone_ref(py));
-        let idx = self.cindex(py).borrow();
+        let idx = self.index(py).borrow();
         let data_tip = idx.check_revision(data_tip).ok_or_else(|| {
             nodemap_error(py, NodeMapError::RevisionNotInIndex(data_tip))
         })?;