equal
deleted
inserted
replaced
5023 Unless -f/--force is specified, :hg:`phase` won't move changeset from a |
5023 Unless -f/--force is specified, :hg:`phase` won't move changeset from a |
5024 lower phase to an higher phase. Phases are ordered as follows:: |
5024 lower phase to an higher phase. Phases are ordered as follows:: |
5025 |
5025 |
5026 public < draft < secret |
5026 public < draft < secret |
5027 |
5027 |
5028 Returns 0 on success, 1 if no phases were changed or some could not |
5028 Returns 0 on success, 1 if some phases could not be changed. |
5029 be changed. |
|
5030 |
5029 |
5031 (For more information about the phases concept, see :hg:`help phases`.) |
5030 (For more information about the phases concept, see :hg:`help phases`.) |
5032 """ |
5031 """ |
5033 # search for a unique phase argument |
5032 # search for a unique phase argument |
5034 targetphase = None |
5033 targetphase = None |
5093 ui.status(msg) |
5092 ui.status(msg) |
5094 else: |
5093 else: |
5095 ui.note(msg) |
5094 ui.note(msg) |
5096 else: |
5095 else: |
5097 ui.warn(_('no phases changed\n')) |
5096 ui.warn(_('no phases changed\n')) |
5098 ret = 1 |
|
5099 return ret |
5097 return ret |
5100 |
5098 |
5101 def postincoming(ui, repo, modheads, optupdate, checkout): |
5099 def postincoming(ui, repo, modheads, optupdate, checkout): |
5102 if modheads == 0: |
5100 if modheads == 0: |
5103 return |
5101 return |