Mercurial > hg
diff tests/test-transplant.t @ 46417:768056549737
errors: use exit code 40 for when a hook fails
A hook can be used for checking inputs, state, configuration,
security, etc., so it's unclear which of the existing exit codes to
use. Let's instead add one specifically for failed hooks. I picked 40.
Differential Revision: https://phab.mercurial-scm.org/D9910
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 29 Jan 2021 12:16:55 -0800 |
parents | 527ce85c2e60 |
children | f838f5bca038 |
line wrap: on
line diff
--- a/tests/test-transplant.t Fri Jan 29 12:50:10 2021 -0500 +++ b/tests/test-transplant.t Fri Jan 29 12:16:55 2021 -0800 @@ -1091,7 +1091,7 @@ transaction abort! rollback completed abort: pretxncommit.abort hook exited with status 1 - [255] + [40] $ cat >> .hg/hgrc <<EOF > [hooks] > pretxncommit.abort = !