As long as return code semantics are clearly stated like grep it should be ok to
go with individual exit codes. I guess it depends on what level of detail you
are looking for. To me as long as hg pull worked, no matter it got new files or
there were none, it is success. To you if nothing was pulled it is 1, if
something was pulled 2, if something broke it is 3 etc.
|