Mercurial > hg
comparison tests/test-commandserver.t @ 26366:a672cc61ab1d
phases: return zero for no-op operations (issue4751) (BC)
It is rather unhelpful to return 1 if there were no changes because
the request matches the current state of phases. So we just undo that.
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Mon, 14 Sep 2015 19:25:34 -0400 |
parents | 5c0f5db65c6b |
children | 2b31d8636f25 |
comparison
equal
deleted
inserted
replaced
26365:33af0c53aeff | 26366:a672cc61ab1d |
---|---|
320 ... runcommand(server, ['commit', '-Am.']) | 320 ... runcommand(server, ['commit', '-Am.']) |
321 ... runcommand(server, ['rollback']) | 321 ... runcommand(server, ['rollback']) |
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) |
329 working directory now based on revision 3 | 328 working directory now based on revision 3 |
330 *** runcommand phase -r . | 329 *** runcommand phase -r . |