[PATCH 8 of 8 V6] context: floor adjustlinkrev graph walk during copy tracing

Yuya Nishihara yuya at tcha.org
Sat Nov 24 02:53:30 UTC 2018


On Mon, 19 Nov 2018 17:49:47 +0100, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld at octobus.net>
> # Date 1539125437 -7200
> #      Wed Oct 10 00:50:37 2018 +0200
> # Node ID 62fe8adca90eeba238fa313827f4714fed6c34a5
> # Parent  3b75faab24d72c1e5689d352ff13b87b9f9faa51
> # EXP-Topic copy-perf
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> #              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 62fe8adca90e
> context: floor adjustlinkrev graph walk during copy tracing

> @@ -750,6 +754,8 @@ class basefilectx(object):
>              fnode = self._filenode
>              path = self._path
>              for a in iteranc:
> +                if stoprev is not None and a < stoprev:
> +                    return None

So, we rely on the fact that iteranc is sorted by revision numbers. Can you
update the docstring of revlog.ancestors? It only says "reverse topological
order", which is weaker constraint.



More information about the Mercurial-devel mailing list