D5551: rust-cpython: using MissingAncestors from Python code

2019-01-16 Thread gracinet (Georges Racinet)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGa89b20a49c13: rust-cpython: using MissingAncestors from Python code (authored by gracinet, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D5551: rust-cpython: using MissingAncestors from Python code

2019-01-14 Thread gracinet (Georges Racinet)
gracinet updated this revision to Diff 13219. gracinet edited the summary of this revision. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D5551?vs=13129=13219 REVISION DETAIL https://phab.mercurial-scm.org/D5551 AFFECTED FILES mercurial/revlog.py

D5551: rust-cpython: using MissingAncestors from Python code

2019-01-14 Thread gracinet (Georges Racinet)
gracinet added a comment. @yuja I talked with @lothiraldan about this today. It turns out that it'd be better to provide a `basesheads` returning a set directly from the MissingAncestors object (I do have a Rust implementation for heads). This would make the call from `setdiscovery`

D5551: rust-cpython: using MissingAncestors from Python code

2019-01-11 Thread yuja (Yuya Nishihara)
yuja added subscribers: lothiraldan, yuja. yuja added a comment. > +bases = self._common.bases > +if callable(bases): > +# This happens for Rust exported object, and we don't know > +# at the moment how to make an equivalent of property for them

Re: D5551: rust-cpython: using MissingAncestors from Python code

2019-01-11 Thread Yuya Nishihara
> +bases = self._common.bases > +if callable(bases): > +# This happens for Rust exported object, and we don't know > +# at the moment how to make an equivalent of property for them > +bases = bases() > + > # The presence of nullrev will

D5551: rust-cpython: using MissingAncestors from Python code

2019-01-10 Thread gracinet (Georges Racinet)
gracinet created this revision. Herald added a reviewer: indygreg. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY As precedently done with LazyAncestors on cpython.rs, we test for the presence of the 'rustext' module. For now, on