changeset 41216:5cc5a5561c3f

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.
author Boris Feld <boris.feld@octobus.net>
date Thu, 10 Jan 2019 15:57:13 +0100
parents 6242a19004ca
children afa884015e66
files mercurial/wireprotov2server.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)