equal
deleted
inserted
replaced
4266 (For more information about the phases concept, see :hg:`help phases`.) |
4266 (For more information about the phases concept, see :hg:`help phases`.) |
4267 """ |
4267 """ |
4268 opts = pycompat.byteskwargs(opts) |
4268 opts = pycompat.byteskwargs(opts) |
4269 # search for a unique phase argument |
4269 # search for a unique phase argument |
4270 targetphase = None |
4270 targetphase = None |
4271 for idx, name in enumerate(phases.phasenames): |
4271 for idx, name in enumerate(phases.cmdphasenames): |
4272 if opts.get(name, False): |
4272 if opts[name]: |
4273 if targetphase is not None: |
4273 if targetphase is not None: |
4274 raise error.Abort(_('only one phase can be specified')) |
4274 raise error.Abort(_('only one phase can be specified')) |
4275 targetphase = idx |
4275 targetphase = idx |
4276 |
4276 |
4277 # look for specified revision |
4277 # look for specified revision |