diff --git a/rust/hg-cpython/src/revlog.rs b/rust/hg-cpython/src/revlog.rs --- a/rust/hg-cpython/src/revlog.rs +++ b/rust/hg-cpython/src/revlog.rs @@ -39,7 +39,7 @@ py_class!(pub class MixedIndex |py| { data nt: RefCell>; data docket: RefCell>; // Holds a reference to the mmap'ed persistent nodemap data - data mmap: RefCell>; + data nodemap_mmap: RefCell>; def __new__(_cls, cindex: PyObject) -> PyResult { Self::new(py, cindex) @@ -175,7 +175,7 @@ py_class!(pub class MixedIndex |py| { def clearcaches(&self, *args, **kw) -> PyResult { self.nt(py).borrow_mut().take(); self.docket(py).borrow_mut().take(); - self.mmap(py).borrow_mut().take(); + self.nodemap_mmap(py).borrow_mut().take(); self.call_cindex(py, "clearcaches", args, kw) } @@ -447,7 +447,7 @@ impl MixedIndex { // Keep a reference to the mmap'ed buffer, otherwise we get a dangling // pointer. - self.mmap(py).borrow_mut().replace(buf); + self.nodemap_mmap(py).borrow_mut().replace(buf); let mut nt = NodeTree::load_bytes(Box::new(bytes), len);