incoming exit status
Haszlakiewicz, Eric
EHASZLA at transunion.com
Wed Nov 10 18:19:27 UTC 2010
>-----Original Message-----
>From: mercurial-bounces at selenic.com [mailto:mercurial-bounces at selenic.com]
>
>I noticed hg incoming returns 1 if there are no any incoming changes.
>What is the reason? I don't think it's an error condition and it breaks
>ability to automate unattended builds.
I think it's specifically so you can easily distinguish between the changes-available and no-changes-available cases. I have scripts that depend on this so I don't have to try to decode the output, which would be very sensitive to the exact messages emitted and thus error prone.
Actual errors cause hg to exit with a return value higher than 1.
eric
More information about the Mercurial
mailing list