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
Showing
- mercurial/dispatch.py 8 additions, 1 deletionmercurial/dispatch.py
- tests/test-alias.t 12 additions, 12 deletionstests/test-alias.t
- tests/test-basic.t 2 additions, 2 deletionstests/test-basic.t
- tests/test-completion.t 1 addition, 1 deletiontests/test-completion.t
- tests/test-dispatch.t 2 additions, 2 deletionstests/test-dispatch.t
- tests/test-extension.t 3 additions, 3 deletionstests/test-extension.t
- tests/test-fastannotate.t 1 addition, 1 deletiontests/test-fastannotate.t
- tests/test-help.t 8 additions, 8 deletionstests/test-help.t
- tests/test-narrow-trackedcmd.t 1 addition, 1 deletiontests/test-narrow-trackedcmd.t
- tests/test-qrecord.t 1 addition, 1 deletiontests/test-qrecord.t
- tests/test-share-safe.t 1 addition, 1 deletiontests/test-share-safe.t
- tests/test-status-color.t 2 additions, 2 deletionstests/test-status-color.t
- tests/test-strict.t 1 addition, 1 deletiontests/test-strict.t
- tests/test-strip.t 1 addition, 1 deletiontests/test-strip.t
Loading
Please register or sign in to comment