##// END OF EJS Templates
phases: return zero for no-op operations (issue4751) (BC)...
Jordi Gutiérrez Hermoso -
r26366:a672cc61 default
parent child Browse files
Show More
@@ -5025,8 +5025,7 b' def phase(ui, repo, *revs, **opts):'
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 """
@@ -5095,7 +5094,6 b' def phase(ui, repo, *revs, **opts):'
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):
@@ -322,7 +322,6 b' check that local configs for the cached '
322 ... runcommand(server, ['phase', '-r', '.'])
322 ... runcommand(server, ['phase', '-r', '.'])
323 *** runcommand phase -r . -p
323 *** runcommand phase -r . -p
324 no phases changed
324 no phases changed
325 [1]
326 *** runcommand commit -Am.
325 *** runcommand commit -Am.
327 *** runcommand rollback
326 *** runcommand rollback
328 repository tip rolled back to revision 3 (undo commit)
327 repository tip rolled back to revision 3 (undo commit)
General Comments 0
You need to be logged in to leave comments. Login now