revset: remove a rare usage of "%d" for a non-revision item
authorBoris Feld <boris.feld@octobus.net>
Thu, 10 Jan 2019 15:57:13 +0100
changeset 41216 5cc5a5561c3f
parent 41215 6242a19004ca
child 41217 afa884015e66
revset: remove a rare usage of "%d" for a non-revision item 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/wireprotov2server.py
--- a/mercurial/wireprotov2server.py	Mon Jan 14 17:45:48 2019 -0500
+++ b/mercurial/wireprotov2server.py	Thu Jan 10 15:57:13 2019 +0100
@@ -823,7 +823,7 @@
                         '%s key not present in changesetexplicitdepth revision '
                         'specifier', (key,))
 
-            for rev in repo.revs(b'ancestors(%ln, %d)', spec[b'nodes'],
+            for rev in repo.revs(b'ancestors(%ln, %s)', spec[b'nodes'],
                                  spec[b'depth'] - 1):
                 node = cl.node(rev)