changeset 41217:afa884015e66

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.
author Boris Feld <boris.feld@octobus.net>
date Thu, 10 Jan 2019 16:03:07 +0100
parents 5cc5a5561c3f
children 24a1f67bb75a
files mercurial/exchangev2.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/exchangev2.py	Thu Jan 10 15:57:13 2019 +0100
+++ b/mercurial/exchangev2.py	Thu Jan 10 16:03:07 2019 +0100
@@ -98,7 +98,7 @@
         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))