Mercurial > hg
comparison tests/test-fastannotate.t @ 46262:9c9e0b4b2ca7
error: use detailed exit code 10 for command errors
Command errors (unknown or ambiguous commands, or bad command
arguments or options) are handled in the `dispatch` module. Most other
errors are handled in the `scmutil` module. This patch therefore has
to duplicate a little bit of code from the `scmutil` module. It's just
a few lines, however, so it seems fine to me. It's a pretty common
category of errors, so it's important to have them respect
`ui.detailed-exit-code`.
Differential Revision: https://phab.mercurial-scm.org/D9777
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 14 Jan 2021 11:53:55 -0800 |
parents | 7116fc614cfc |
children |
comparison
equal
deleted
inserted
replaced
46261:c9b2a4d69e66 | 46262:9c9e0b4b2ca7 |
---|---|
121 0: 1 | 121 0: 1 |
122 1: 2 | 122 1: 2 |
123 $ hg fastannotate --config fastannotate.modes=fctx -h -q | 123 $ hg fastannotate --config fastannotate.modes=fctx -h -q |
124 hg: unknown command 'fastannotate' | 124 hg: unknown command 'fastannotate' |
125 (did you mean *) (glob) | 125 (did you mean *) (glob) |
126 [255] | 126 [10] |
127 | 127 |
128 rename | 128 rename |
129 | 129 |
130 $ hg mv a b | 130 $ hg mv a b |
131 $ cat > b << EOF | 131 $ cat > b << EOF |