diff tests/test-dispatch.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 ac565222b9f8
children 768056549737
line wrap: on
line diff
--- a/tests/test-dispatch.t	Wed Jan 13 22:37:21 2021 -0800
+++ b/tests/test-dispatch.t	Thu Jan 14 11:53:55 2021 -0800
@@ -29,7 +29,7 @@
    -T --template TEMPLATE   display with template
   
   (use 'hg cat -h' to show more help)
-  [255]
+  [10]
 
 Missing parameter for early option:
 
@@ -110,7 +110,7 @@
   hg log: option -b not recognized
   error in definition for alias 'log': --config may only be given on the command
   line
-  [255]
+  [10]
 
   $ hg log -b '--config=defaults.log=--config=hooks.pre-log=false'
   abort: option --config may not be abbreviated