rust/hg-cpython/src/discovery.rs
changeset 42736 b6f3f704a561
parent 42735 5154701a5413
child 42738 8041a1b45163
--- 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<PartialDiscovery> {
+        let index = repo.getattr(py, "changelog")?.getattr(py, "index")?;
         Self::create_instance(
             py,
             RefCell::new(Box::new(CorePartialDiscovery::new(