hg diff/status always returns zero?
Giorgos Keramidas
keramida at ceid.upatras.gr
Wed May 6 18:56:47 CDT 2009
On Wed, 6 May 2009 19:43:25 -0400, Stephen Rasku <mercurial at srasku.net> wrote:
> On Wed, May 6, 2009 at 18:45, Giorgos Keramidas wrote:
>> Another reason, which may be more important than this crontab issue
>> is that the diff/stat commands have been returning 0 for a long time.
>> If we change that now, it may break everyone's integration of these
>> commands in their workflow, so such a change should be done with a
>> lot of care and a great deal of forward warnings. This way everybody
>> will have time to adjust their derivative tools.
>
> OK, fair enough. As I understand it these commands will currently
> return an exit code if there was an exception of some sort but for no
> other reason. Is that correct?
Yes, Python always exits with a non-zero code when an exception
triggers, i.e.:
$ python -c 'raise Exception, "demo"' ; echo $?
Traceback (most recent call last):
File "<string>", line 1, in <module>
Exception: demo
1
$
More information about the Mercurial
mailing list