[Bug 5102] New: Add a flag to make hg diff or hg status' exit codes reflect the presence of changes
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Tue Feb 16 23:57:06 UTC 2016
https://bz.mercurial-scm.org/show_bug.cgi?id=5102
Bug ID: 5102
Summary: Add a flag to make hg diff or hg status' exit codes
reflect the presence of changes
Product: Mercurial
Version: 3.7.1
Hardware: PC
OS: Mac OS
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: Mercurial
Assignee: bugzilla at selenic.com
Reporter: lcharignon at fb.com
CC: mercurial-devel at selenic.com
We could add a flag to hg status and hg diff to make them return with an exit
code similar to the diff command:
- 0 when there are no changes
- 1 when changes are reported
This would make it slightly easier to use hg diff and hg status in scripts.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list