Mercurial > hg
diff tests/test-bundle2-exchange.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 | ebee234d952a |
children | 3f87d2af0bd6 |
line wrap: on
line diff
--- a/tests/test-bundle2-exchange.t Fri Jan 29 12:50:10 2021 -0500 +++ b/tests/test-bundle2-exchange.t Fri Jan 29 12:16:55 2021 -0800 @@ -638,7 +638,7 @@ remote: Cleaning up the mess... remote: rollback completed abort: pretxnclose.failpush hook exited with status 1 - [255] + [40] $ hg -R main push ssh://user@dummy/other -r e7ec4e813ba6 pushing to ssh://user@dummy/other @@ -699,7 +699,7 @@ remote: Cleaning up the mess... remote: rollback completed abort: pretxnchangegroup hook exited with status 1 - [255] + [40] $ hg -R main push ssh://user@dummy/other -r e7ec4e813ba6 pushing to ssh://user@dummy/other searching for changes @@ -747,7 +747,7 @@ Cleaning up the mess... rollback completed abort: pretxnchangegroup hook exited with status 1 - [255] + [40] $ hg -R main push ssh://user@dummy/other -r e7ec4e813ba6 pushing to ssh://user@dummy/other searching for changes