# HG changeset patch # User Raphaël Gomès # Date 1690987773 -7200 # Node ID 72d16685d63a0b605278fbae809a30245971f939 # Parent e9d47e2f5dcf59fe57e9a26b040b98206f9cdc21 rust-index: use the Rust index in `partialmatch` diff -r e9d47e2f5dcf -r 72d16685d63a rust/hg-cpython/src/revlog.rs --- 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> { 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::(py)?.to_string(py)?.to_string()