changeset 51210:72d16685d63a

rust-index: use the Rust index in `partialmatch`
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 02 Aug 2023 16:49:33 +0200
parents e9d47e2f5dcf
children b8c89957a6b7
files rust/hg-cpython/src/revlog.rs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-cpython/src/revlog.rs	Thu Aug 03 14:50:17 2023 +0200
+++ b/rust/hg-cpython/src/revlog.rs	Wed Aug 02 16:49:33 2023 +0200
@@ -117,7 +117,7 @@
     def partialmatch(&self, node: PyObject) -> PyResult<Option<PyBytes>> {
         let opt = self.get_nodetree(py)?.borrow();
         let nt = opt.as_ref().unwrap();
-        let idx = &*self.cindex(py).borrow();
+        let idx = &*self.index(py).borrow();
 
         let node_as_string = if cfg!(feature = "python3-sys") {
             node.cast_as::<PyString>(py)?.to_string(py)?.to_string()