tests/test-dispatch.t
changeset 45918 ac565222b9f8
parent 45911 8939062597f0
child 46262 9c9e0b4b2ca7
--- a/tests/test-dispatch.t	Mon Nov 23 23:08:58 2020 -0800
+++ b/tests/test-dispatch.t	Mon Nov 23 10:39:51 2020 -0800
@@ -63,20 +63,20 @@
 
   $ hg cat --debugg
   abort: option --debugger may not be abbreviated
-  [255]
+  [10]
 
 Parsing failure of early options should be detected before executing the
 command:
 
   $ hg log -b '--config=hooks.pre-log=false' default
   abort: option --config may not be abbreviated
-  [255]
+  [10]
   $ hg log -b -R. default
   abort: option -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo
-  [255]
+  [10]
   $ hg log --cwd .. -b --cwd=. default
   abort: option --cwd may not be abbreviated
-  [255]
+  [10]
 
 However, we can't prevent it from loading extensions and configs:
 
@@ -86,7 +86,7 @@
   $ hg log -b '--config=extensions.bad=bad.py' default
   *** failed to import extension bad from bad.py: bad
   abort: option --config may not be abbreviated
-  [255]
+  [10]
 
   $ mkdir -p badrepo/.hg
   $ echo 'invalid-syntax' > badrepo/.hg/hgrc
@@ -114,7 +114,7 @@
 
   $ hg log -b '--config=defaults.log=--config=hooks.pre-log=false'
   abort: option --config may not be abbreviated
-  [255]
+  [10]
 
 Shell aliases bypass any command parsing rules but for the early one:
 
@@ -144,13 +144,13 @@
 
   $ HGPLAIN=+strictflags hg log --config='hooks.pre-log=false' -b default
   abort: option --config may not be abbreviated
-  [255]
+  [10]
   $ HGPLAIN=+strictflags hg log -q --cwd=.. -b default
   abort: option --cwd may not be abbreviated
-  [255]
+  [10]
   $ HGPLAIN=+strictflags hg log -q -R . -b default
   abort: option -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo
-  [255]
+  [10]
 
   $ HGPLAIN=+strictflags hg --config='hooks.pre-log=false' log -b default
   abort: pre-log hook exited with status 1