changeset 39293:278eb4541758

phases: simplify revset in updatephases (Pointed by Yuya Nishihara)
author Boris Feld <boris.feld@octobus.net>
date Sat, 25 Aug 2018 11:20:13 +0200
parents f6f52841e1ff
children 1cb7c9777852
files mercurial/phases.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/phases.py	Tue Aug 28 00:32:10 2018 +0800
+++ b/mercurial/phases.py	Sat Aug 25 11:20:13 2018 +0200
@@ -599,8 +599,8 @@
     # to update. This avoid creating empty transaction during no-op operation.
 
     for phase in allphases[:-1]:
-        revset = '%%ln - _phase(%d)' % phase
-        heads = [c.node() for c in repo.set(revset, headsbyphase[phase])]
+        revset = '%ln - _phase(%s)'
+        heads = [c.node() for c in repo.set(revset, headsbyphase[phase], phase)]
         if heads:
             advanceboundary(repo, trgetter(), phase, heads)