mercurial/commands.py
changeset 15832 b03388ffeb31
parent 15831 0ecaf1e72609
child 15833 3cf2bb3a9fcc
equal deleted inserted replaced
15831:0ecaf1e72609 15832:b03388ffeb31
  4226 def phase(ui, repo, *revs, **opts):
  4226 def phase(ui, repo, *revs, **opts):
  4227     """set or show the current phase name
  4227     """set or show the current phase name
  4228 
  4228 
  4229     With no argument, show the phase name of specified revisions.
  4229     With no argument, show the phase name of specified revisions.
  4230 
  4230 
  4231     With on one of `--public`, `--draft` or `--secret`, change the phase value.
  4231     With one of `--public`, `--draft` or `--secret`, change the phase
       
  4232     value of the specified revisions.
  4232 
  4233 
  4233     Unless -f/--force is specified, :hg:`phase` won't move changeset from a
  4234     Unless -f/--force is specified, :hg:`phase` won't move changeset from a
  4234     lower phase to an higher phase. Phase are ordered as follow:
  4235     lower phase to an higher phase. Phases are ordered as follows:
  4235 
  4236 
  4236         public < draft < secret.
  4237         public < draft < secret
  4237     """
  4238     """
  4238     # search for a unique phase argument
  4239     # search for a unique phase argument
  4239     targetphase = None
  4240     targetphase = None
  4240     for idx, name in enumerate(phasesmod.phasenames):
  4241     for idx, name in enumerate(phasesmod.phasenames):
  4241         if opts[name]:
  4242         if opts[name]: