# HG changeset patch # User Boris Feld # Date 2018-08-25 09:20:13 # Node ID 278eb454175843acb78e8f927a08c5aff3a2dfaf # Parent f6f52841e1ffd979ad8b660abd0abe59d2e74aaa phases: simplify revset in updatephases (Pointed by Yuya Nishihara) diff --git a/mercurial/phases.py b/mercurial/phases.py --- a/mercurial/phases.py +++ b/mercurial/phases.py @@ -599,8 +599,8 @@ def updatephases(repo, trgetter, headsby # 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)