mercurial/commands.py
changeset 40581 ef694e477783
parent 40578 db61a18148a4
child 40676 1a6bb5a85e30
--- a/mercurial/commands.py	Fri Nov 09 23:19:53 2018 -0500
+++ b/mercurial/commands.py	Sat Nov 10 13:37:18 2018 -0500
@@ -4268,8 +4268,8 @@
     opts = pycompat.byteskwargs(opts)
     # search for a unique phase argument
     targetphase = None
-    for idx, name in enumerate(phases.phasenames):
-        if opts.get(name, False):
+    for idx, name in enumerate(phases.cmdphasenames):
+        if opts[name]:
             if targetphase is not None:
                 raise error.Abort(_('only one phase can be specified'))
             targetphase = idx