Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hook.t @ 19011:12acbea17625
dispatch: print 'abort:' when a pre-command hook fails (BC)
This also changes the exit code from whatever the hook returned to 255. This
brings it in line with all the other hooks that abort.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 16 Apr 2013 14:39:37 -0700 |
parents | a60963c02f92 |
children | 5bd6a9fec103 |
line wrap: on
line diff
--- a/tests/test-hook.t Mon Apr 15 23:31:56 2013 +0200 +++ b/tests/test-hook.t Tue Apr 16 14:39:37 2013 -0700 @@ -71,8 +71,8 @@ $ hg id pre-identify hook: HG_ARGS=id HG_OPTS={'bookmarks': None, 'branch': None, 'id': None, 'insecure': None, 'num': None, 'remotecmd': '', 'rev': '', 'ssh': '', 'tags': None} HG_PATS=[] - warning: pre-identify hook exited with status 1 - [1] + abort: pre-identify hook exited with status 1 + [255] $ hg cat b pre-cat hook: HG_ARGS=cat b HG_OPTS={'decode': None, 'exclude': [], 'include': [], 'output': '', 'rev': ''} HG_PATS=['b'] b