tests/test-help.t
changeset 26364 6e9c2aab9925
parent 26351 8c7d8d5e1e0f
child 26370 44cc9f63a2f1
--- a/tests/test-help.t	Fri Sep 25 12:38:20 2015 +0800
+++ b/tests/test-help.t	Fri Sep 25 11:16:20 2015 -0400
@@ -616,6 +616,23 @@
   [255]
 
 
+Make sure that we don't run afoul of the help system thinking that
+this is a section and erroring out weirdly.
+
+  $ hg .log
+  hg: unknown command '.log'
+  (did you mean one of log?)
+  [255]
+
+  $ hg log.
+  hg: unknown command 'log.'
+  (did you mean one of log?)
+  [255]
+  $ hg pu.lh
+  hg: unknown command 'pu.lh'
+  (did you mean one of pull, push?)
+  [255]
+
   $ cat > helpext.py <<EOF
   > import os
   > from mercurial import cmdutil, commands