comparison tests/test-strip.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 9c9e0b4b2ca7
children 5105a9975407
comparison
equal deleted inserted replaced
46416:bc3f3b59d0a4 46417:768056549737
425 rollback completed 425 rollback completed
426 strip failed, backup bundle stored in '$TESTTMP/test/.hg/strip-backup/*-backup.hg' (glob) 426 strip failed, backup bundle stored in '$TESTTMP/test/.hg/strip-backup/*-backup.hg' (glob)
427 strip failed, unrecovered changes stored in '$TESTTMP/test/.hg/strip-backup/*-temp.hg' (glob) 427 strip failed, unrecovered changes stored in '$TESTTMP/test/.hg/strip-backup/*-temp.hg' (glob)
428 (fix the problem, then recover the changesets with "hg unbundle '$TESTTMP/test/.hg/strip-backup/*-temp.hg'") (glob) 428 (fix the problem, then recover the changesets with "hg unbundle '$TESTTMP/test/.hg/strip-backup/*-temp.hg'") (glob)
429 abort: pretxnchangegroup.bad hook exited with status 1 429 abort: pretxnchangegroup.bad hook exited with status 1
430 [255] 430 [40]
431 $ restore 431 $ restore
432 $ hg log -G 432 $ hg log -G
433 o changeset: 4:443431ffac4f 433 o changeset: 4:443431ffac4f
434 | tag: tip 434 | tag: tip
435 | user: test 435 | user: test