Commits

Simon Law  committed 84b1495

Compatibility layer for cmdutil.UnknownCommand in Mercurial 0.9.3.

  • Participants
  • Parent commits 5727190

Comments (0)

Files changed (1)

 try:
     findcmd.findcmd = cmdutil.findcmd
     findcmd.__doc__ = cmdutil.findcmd.__doc__
+    findcmd.UnknownCommand = cmdutil.UnknownCommand
 except AttributeError:
     findcmd.findcmd = commands.findcmd
     findcmd.__doc__ = commands.findcmd.__doc__
+    findcmd.UnknownCommand = commands.UnknownCommand
 
 # For backwards compatibility, find the parseurl() function that splits
 # urls and revisions.  Mercurial 0.9.3 doesn't have this, so we need
                                     + cmd_options(ui, 'fetch',
                                                   remove=('bundle',)),
                                     _('hg ffetch [OPTION]... [SOURCE]'))})
-    except cmdutil.UnknownCommand:
+    except findcmd.UnknownCommand:
         return
 
 commands.norepo += " fclone fseed"