# HG changeset patch # User Raphaël Gomès # Date 1690987757 -7200 # Node ID 274abd1562a265d2f58341d3e622cac764613800 # Parent b67cd0d0e97627a6993c9969dfd0563fbb68c9fc rust-index: use the rust index in `shortest` diff -r b67cd0d0e976 -r 274abd1562a2 rust/hg-cpython/src/revlog.rs --- a/rust/hg-cpython/src/revlog.rs Wed Aug 02 14:34:21 2023 +0200 +++ b/rust/hg-cpython/src/revlog.rs Wed Aug 02 16:49:17 2023 +0200 @@ -105,7 +105,7 @@ def shortest(&self, node: PyBytes) -> 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(); match nt.unique_prefix_len_node(idx, &node_from_py_bytes(py, &node)?) { Ok(Some(l)) => Ok(l),