[PATCH 2 of 2] rust-cpython: using rustext.dagop.headrevs in revlog

Yuya Nishihara yuya at tcha.org
Thu Jan 17 08:40:58 EST 2019


On Wed, 16 Jan 2019 19:15:09 +0100, Georges Racinet wrote:
> # HG changeset patch
> # User Georges Racinet <georges.racinet at octobus.net>
> # Date 1547651966 -3600
> #      Wed Jan 16 16:19:26 2019 +0100
> # Node ID 234c106610004aff294268ccda82238164f91f64
> # Parent  f32e7d90db76879096f216f23ebbe75772b0201e
> # EXP-Topic revset.predicates
> rust-cpython: using rustext.dagop.headrevs in revlog

> --- a/mercurial/revlog.py	Thu Jan 10 18:25:18 2019 +0100
> +++ b/mercurial/revlog.py	Wed Jan 16 16:19:26 2019 +0100
> @@ -1108,6 +1108,8 @@
>                  return self.index.headrevs()
>              except AttributeError:
>                  return self._headrevs()
> +        if rustext is not None:
> +            return rustext.dagop.headrevs(self.index, revs)
>          return dagop.headrevs(revs, self.parentrevs)

(CC: Boris)
Are we sure the given revs are not filtered?


More information about the Mercurial-devel mailing list