According to hg help push , he
Returns 0 if the click was successful, 1 if nothing was pressed.
Now I donβt have a beard, but it doesnβt look like the Unixy method.
for instance
set -e hg push -R ~/some-repo # never get here if push aborts for any reason # ...OR if some-repo has no changes exit 0
I canβt imagine why I would like hg push to behave this way, especially since the information command hg out returns exactly the same status code.
So my question is: how can I say when hg push really failed? Should I read the stream output?
(By the way, someone pointed out in Janaruy 2012 that it does not work this way, and they fixed the program instead of the documentation.)
(I also know that set -e has problems . It's not about that.)
harpo source share