diff -r 2a8782cc2e16 -r 619ee4039bd4 rust/hg-cpython/src/ancestors.rs --- a/rust/hg-cpython/src/ancestors.rs Mon Jan 14 18:52:01 2019 +0100 +++ b/rust/hg-cpython/src/ancestors.rs Mon Jan 14 17:07:39 2019 +0100 @@ -166,6 +166,11 @@ py_set(py, self.inner(py).borrow().get_bases()) } + def basesheads(&self) -> PyResult { + let inner = self.inner(py).borrow(); + py_set(py, &inner.bases_heads().map_err(|e| GraphError::pynew(py, e))?) + } + def removeancestorsfrom(&self, revs: PyObject) -> PyResult { let mut inner = self.inner(py).borrow_mut(); // this is very lame: we convert to a Rust set, update it in place