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
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
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`
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
> +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
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