diff -r 5154701a5413 -r b6f3f704a561 rust/hg-cpython/src/discovery.rs --- a/rust/hg-cpython/src/discovery.rs Wed Jun 12 14:18:12 2019 +0100 +++ b/rust/hg-cpython/src/discovery.rs Wed Jun 12 14:31:41 2019 +0100 @@ -34,10 +34,11 @@ // implemented. def __new__( _cls, - index: PyObject, + repo: PyObject, targetheads: PyObject, _respectsize: bool ) -> PyResult { + let index = repo.getattr(py, "changelog")?.getattr(py, "index")?; Self::create_instance( py, RefCell::new(Box::new(CorePartialDiscovery::new(