tests/test-alias.t
branchstable
changeset 20328 03d345da0579
parent 20117 aa9385f983fa
child 21556 5e13507a3b4e
--- a/tests/test-alias.t	Thu Jan 30 13:56:56 2014 -0600
+++ b/tests/test-alias.t	Wed Jan 29 23:47:54 2014 +0900
@@ -324,6 +324,21 @@
   $ hg escaped4 test
   $0 $@
 
+abbreviated name, which matches against both shell alias and the
+command provided extension, should be aborted.
+
+  $ cat >> .hg/hgrc <<EOF
+  > [extensions]
+  > hgext.rebase =
+  > [alias]
+  > rebate = !echo this is rebate
+  > EOF
+  $ hg reba
+  hg: command 'reba' is ambiguous:
+      rebase rebate
+  [255]
+  $ hg rebat
+  this is rebate
 
 invalid arguments