diff tests/test-dispatch.t @ 35029:e16f68c4abe3 stable

dispatch: stop parsing of early boolean option at "--"
author Yuya Nishihara <yuya@tcha.org>
date Fri, 10 Nov 2017 22:27:26 +0900
parents 7384250eabd9
children d9aba3730d30
line wrap: on
line diff
--- a/tests/test-dispatch.t	Fri Nov 10 22:22:39 2017 +0900
+++ b/tests/test-dispatch.t	Fri Nov 10 22:27:26 2017 +0900
@@ -42,6 +42,15 @@
   hg log [OPTION]... [FILE]
   (use 'hg log -h' to show more help)
 
+Parsing of early options should stop at "--":
+
+  $ hg cat -- --config=hooks.pre-cat=false
+  --config=hooks.pre-cat=false: no such file in rev cb9a9f314b8b
+  [1]
+  $ hg cat -- --debugger
+  --debugger: no such file in rev cb9a9f314b8b
+  [1]
+
 [defaults]
 
   $ hg cat a