diff mercurial/dispatch.py @ 12932:ab93029ab622 stable

alias: fall back to normal error handling for ambigious commands (fixes issue2475)
author Steve Losh <steve@stevelosh.com>
date Fri, 05 Nov 2010 15:54:32 -0400
parents 4d657b524be8
children a939f08fae9c
line wrap: on
line diff
--- a/mercurial/dispatch.py	Fri Nov 05 15:13:22 2010 +0100
+++ b/mercurial/dispatch.py	Fri Nov 05 15:54:32 2010 -0400
@@ -453,7 +453,7 @@
     cmd = args[0]
     try:
         aliases, entry = cmdutil.findcmd(cmd, cmdtable, lui.config("ui", "strict"))
-    except error.UnknownCommand:
+    except (error.AmbiguousCommand, error.UnknownCommand):
         commands.norepo = norepo
         os.chdir(cwd)
         return