[PATCH 5 of 6] rust: look up HgRevlogIndex_GetParents() from symbol table

Yuya Nishihara yuya at tcha.org
Tue Dec 11 08:08:32 EST 2018


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 <yuya at 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]>
      ...
  }


More information about the Mercurial-devel mailing list