Mercurial > hg-stable
changeset 51227:952e3cd7568f
rust-index: using the Rust index in nodemap updating methods
author | Georges Racinet <georges.racinet@octobus.net> |
---|---|
date | Mon, 30 Oct 2023 11:03:57 +0100 |
parents | 002b49905aac |
children | b67cd0d0e976 |
files | rust/hg-cpython/src/revlog.rs |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)) })?;