Message2968

Author eydaimon
Recipients ThomasAH, alexis, bos, brendan, dduvall, junkblocker, kupfer, tonfa
Date 2007-04-07.03:46:50
Content
typically non-zero exit codes are reserved for unexpected failures. doing a 
pull and not getting anything when no changes have been submitted isn't really 
unexpected.
It's easy enough to make a check to see if there was no submits anyway if a 
message is printed.

hg pull ... | grep "No new checkins"

for example.

Another way would be to actually print some sort of error code like apache 
does. Apache doesn't really have a failure itself if a document doesn't exist, 
but it prints a 404.
so maybe:

hg pull ... | grep "404: No new checkins"

which can obviously be reduced to
hg pull ... | grep 404

This may be good to use where error messages may change, but codes usually 
remain static.
History
Date User Action Args
2007-04-07 03:46:52eydaimonsetmessageid: <1175917612.2.0.35930373162.issue186@selenic.com>
2007-04-07 03:46:52eydaimonsetrecipients: + bos, ThomasAH, tonfa, brendan, alexis, junkblocker, kupfer, dduvall
2007-04-07 03:46:52eydaimonlinkissue186 messages
2007-04-07 03:46:50eydaimoncreate