# HG changeset patch # User Boris Feld # Date 2019-01-10 15:03:07 # Node ID afa884015e661d54e26684cc69320e6656f5fb41 # Parent 5cc5a5561c3f7789c214820a648f16b96d320cbe revset: remove the last usage of "%d" for a non-revision entry In order to fix an important bug, we are about to narrow the semantic of "%d" in revset. This is one of the few exceptions that we need to get rid of before being able to fix the bug. See the later semantic narrowing changeset for full rationale on the semantic change. diff --git a/mercurial/exchangev2.py b/mercurial/exchangev2.py --- a/mercurial/exchangev2.py +++ b/mercurial/exchangev2.py @@ -98,7 +98,7 @@ def pull(pullop): relevantcsetnodes = set() clnode = repo.changelog.node - for rev in repo.revs(b'ancestors(%ln, %d)', + for rev in repo.revs(b'ancestors(%ln, %s)', pullheads, pullop.depth - 1): relevantcsetnodes.add(clnode(rev))