revset: remove the last usage of "%d" for a non-revision entry
authorBoris Feld <boris.feld@octobus.net>
Thu, 10 Jan 2019 16:03:07 +0100
changeset 41217 afa884015e66
parent 41216 5cc5a5561c3f
child 41218 24a1f67bb75a
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.
mercurial/exchangev2.py
--- 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))