Mercurial > hg
diff i18n/ro.po @ 16097:8dc573a9c5e5
phase: when phase cannot be reduced, hint at --force and return 1 (BC)
Before, trying to change the phase of a "public" node to "draft" would result
in:
$ hg phase --draft .
no phases changed
[0]
With this patch:
$ hg phase --draft .
cannot move 1 changesets to a more permissive phase, use --force
no phases changed
[1]
On partial failures, the exit status is now 1 instead of 0 and the number of
changed nodes is displayed while it was only with --verbose. It seems useful to
tell the user that despite the apparent failure, something changed.
$ hg phase --draft '5 or 7'
cannot move 1 changesets to a more permissive phase, use --force
phase changed for 1 changesets
[1]
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Wed, 08 Feb 2012 20:00:52 +0100 |
parents | 09a1dff3aff7 |
children | baf1600adfbe |