rust/hg-cpython/src/cindex.rs
changeset 44010 2728fcb8127c
parent 43960 ab3fd8077f5e
child 44066 f5d2720f3bea
--- a/rust/hg-cpython/src/cindex.rs	Fri Dec 06 20:40:02 2019 -0500
+++ b/rust/hg-cpython/src/cindex.rs	Fri Dec 13 19:52:26 2019 +0100
@@ -88,6 +88,15 @@
     }
 }
 
+impl PyClone for Index {
+    fn clone_ref(&self, py: Python) -> Self {
+        Index {
+            index: self.index.clone_ref(py),
+            capi: self.capi,
+        }
+    }
+}
+
 impl Graph for Index {
     /// wrap a call to the C extern parents function
     fn parents(&self, rev: Revision) -> Result<[Revision; 2], GraphError> {