##// END OF EJS Templates
dispatch: make "_checkshellalias()" invoke "findcmd()" with "strict=True"...
FUJIWARA Katsunori -
r20328:03d345da stable
parent child Browse files
Show More
@@ -635,8 +635,7 b' def _checkshellalias(lui, ui, args):'
635
635
636 cmd = args[0]
636 cmd = args[0]
637 try:
637 try:
638 aliases, entry = cmdutil.findcmd(cmd, cmdtable,
638 aliases, entry = cmdutil.findcmd(cmd, cmdtable)
639 lui.configbool("ui", "strict"))
640 except (error.AmbiguousCommand, error.UnknownCommand):
639 except (error.AmbiguousCommand, error.UnknownCommand):
641 restorecommands()
640 restorecommands()
642 return
641 return
@@ -324,6 +324,21 b' shell aliases with escaped $ chars'
324 $ hg escaped4 test
324 $ hg escaped4 test
325 $0 $@
325 $0 $@
326
326
327 abbreviated name, which matches against both shell alias and the
328 command provided extension, should be aborted.
329
330 $ cat >> .hg/hgrc <<EOF
331 > [extensions]
332 > hgext.rebase =
333 > [alias]
334 > rebate = !echo this is rebate
335 > EOF
336 $ hg reba
337 hg: command 'reba' is ambiguous:
338 rebase rebate
339 [255]
340 $ hg rebat
341 this is rebate
327
342
328 invalid arguments
343 invalid arguments
329
344
General Comments 0
You need to be logged in to leave comments. Login now