diff tests/test-dispatch.t @ 35027:7384250eabd9 stable

dispatch: do not drop unpaired argument at _earlygetopt() Before, "hg log -R" just worked.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 11 Nov 2017 12:09:19 +0900
parents 0ccb43d4cf01
children e16f68c4abe3
line wrap: on
line diff
--- a/tests/test-dispatch.t	Sat Nov 04 20:07:40 2017 +0900
+++ b/tests/test-dispatch.t	Sat Nov 11 12:09:19 2017 +0900
@@ -30,6 +30,18 @@
   (use 'hg cat -h' to show more help)
   [255]
 
+Missing parameter for early option:
+
+  $ hg log -R 2>&1 | grep 'hg log'
+  hg log: option -R requires argument
+  hg log [OPTION]... [FILE]
+  (use 'hg log -h' to show more help)
+
+  $ hg log -R -- 2>&1 | grep 'hg log'
+  hg log: option -R requires argument
+  hg log [OPTION]... [FILE]
+  (use 'hg log -h' to show more help)
+
 [defaults]
 
   $ hg cat a