D7654: rust-index: add a `inner` method to the Index struct

gracinet (Georges Racinet) phabricator at mercurial-scm.org
Mon Dec 23 13:07:25 EST 2019


Closed by commit rHGab3fd8077f5e: rust-index: add a `inner` method to the Index struct (authored by gracinet).
This revision was automatically updated to reflect the committed changes.

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D7654?vs=18700&id=18919#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7654?vs=18700&id=18919

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7654/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7654

AFFECTED FILES
  rust/hg-cpython/src/cindex.rs

CHANGE DETAILS

diff --git a/rust/hg-cpython/src/cindex.rs b/rust/hg-cpython/src/cindex.rs
--- a/rust/hg-cpython/src/cindex.rs
+++ b/rust/hg-cpython/src/cindex.rs
@@ -71,6 +71,11 @@
             capi: unsafe { revlog_capi::retrieve(py)? },
         })
     }
+
+    /// return a reference to the CPython Index object in this Struct
+    pub fn inner(&self) -> &PyObject {
+        &self.index
+    }
 }
 
 impl Clone for Index {



To: marmoute, #hg-reviewers, Alphare, indygreg
Cc: durin42, kevincox, mercurial-devel


More information about the Mercurial-devel mailing list