View Ticket
Not logged in
Ticket UUID: f35bb2003cc81e6c62b6f51377144e860280d9a5
Title: Request cmd line return 1 if no files updated, 2 for errors
Status: Open Type: Feature_Request
Severity: Minor Priority:
Subsystem: Resolution:
Last Modified: 2010-03-07 10:58:13
Version Found In:
Description & Comments:
As it currently works, Fossil returns '0' on any command which succeeded, or '1' if the command was unknown or ambiguous.

It would be useful to be able to differentiate between 'no files were updated' and 'there was an error' in scripts. Therefore I would like to request that "0" be returned when 'all is well', '1' when 'upd' or other command updated files on disk (adding, removing or updating), and '2' if there was a problem understanding the command. Perhaps '3' if the command actually failed but was understood.