# HG changeset patch # User Matt Harbison # Date 1541875038 18000 # Node ID ef694e477783bb832b70ab6189eafa67b8020f00 # Parent ab893a99b6451cada6c5d773817fa14043a853dd phase: use the `phases.cmdphasenames` constant to walk available command flags This reverts 1ea6772fb415. diff -r ab893a99b645 -r ef694e477783 mercurial/commands.py --- 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