mercurial/dispatch.py
branchstable
changeset 9993 8bce1e0d2801
parent 9825 0d850f8beea6
child 9994 931d2c757627
child 10263 25e572394f5c
--- a/mercurial/dispatch.py	Wed Dec 02 14:30:39 2009 +0200
+++ b/mercurial/dispatch.py	Thu Dec 03 14:14:44 2009 +0900
@@ -196,7 +196,12 @@
         cmd = args.pop(0)
 
         try:
-            self.fn, self.opts, self.help = cmdutil.findcmd(cmd, cmdtable, False)[1]
+            tableentry = cmdutil.findcmd(cmd, cmdtable, False)[1]
+            if len(tableentry) > 2:
+                self.fn, self.opts, self.help = tableentry
+            else:
+                self.fn, self.opts = tableentry
+
             self.args = aliasargs(self.fn) + args
             if cmd not in commands.norepo.split(' '):
                 self.norepo = False