On Mon, 10 Dec 2018 19:00:43 +0100, Georges Racinet wrote: > On 12/5/18 2:43 PM, Yuya Nishihara wrote: > > # HG changeset patch > > # User Yuya Nishihara <y...@tcha.org> > > # Date 1543756838 -32400 > > # Sun Dec 02 22:20:38 2018 +0900 > > # Node ID f5cdfa49994e3943ba7c4ce2d66708142f0c7058 > > # Parent 716a73bab79be30c20c75e13324c44205d5e2120 > > rust: look up HgRevlogIndex_GetParents() from symbol table > > > > And removes the unused index_get_parents_checked() function. > > > > I expect the Index struct will be turned into a pyobject type, though I > > haven't written any PoC-level patches yet. > > I'm not sure what you mean exactly with turning Index into a pyobject > type. Would you care to elaborate ?
I mean we'll probably want a Rust type wrapping a Python Index object, something like: impl Index { pub fn parents(&self, py: Python, rev: Revision) -> PyResult<[Revision; 2]> ... } _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel