tests/test-extdiff.t
branchstable
changeset 24108 d65ecb814fc0
parent 23974 e484546a7c18
child 24153 f7401f816cc9
--- a/tests/test-extdiff.t	Mon Feb 02 14:26:47 2015 -0500
+++ b/tests/test-extdiff.t	Wed Feb 11 19:57:07 2015 +0900
@@ -182,6 +182,22 @@
   running "*/bin/echo --foo='sp ace' 'sp ace' --bar='sp ace' 'sp ace'" in * (glob)
 #endif
 
+Empty argument must be quoted
+
+  $ cat <<EOF >> $HGRCPATH
+  > [extdiff]
+  > kdiff3 = echo
+  > [merge-tools]
+  > kdiff3.diffargs=--L1 \$plabel1 --L2 \$clabel \$parent \$child
+  > EOF
+#if windows
+  $ hg --debug kdiff3 -r0 | grep '^running'
+  running 'echo --L1 "@0" --L2 "" a.8a5febb7f867 a' in * (glob)
+#else
+  $ hg --debug kdiff3 -r0 | grep '^running'
+  running "echo --L1 '@0' --L2 '' a.8a5febb7f867 a" in * (glob)
+#endif
+
 #if execbit
 
 Test extdiff of multiple files in tmp dir: