Mercurial > hg
comparison tests/test-qrecord.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 | 3f82a915ab2a |
children | e4acdf5d94a2 |
comparison
equal
deleted
inserted
replaced
46261:c9b2a4d69e66 | 46262:9c9e0b4b2ca7 |
---|---|
103 hg qrecord [OPTION]... PATCH [FILE]... | 103 hg qrecord [OPTION]... PATCH [FILE]... |
104 | 104 |
105 interactively record a new patch | 105 interactively record a new patch |
106 | 106 |
107 (use 'hg qrecord -h' to show more help) | 107 (use 'hg qrecord -h' to show more help) |
108 [255] | 108 [10] |
109 | 109 |
110 qrecord patch (mq not present) | 110 qrecord patch (mq not present) |
111 | 111 |
112 $ hg -R a qrecord patch | 112 $ hg -R a qrecord patch |
113 abort: 'mq' extension not loaded | 113 abort: 'mq' extension not loaded |