1. Patrick Mézard
  2. hgforest-crew

Commits

Patrick Mézard  committed af8268c

Fix cmdutil.findcmd() not taking a ui argument anymore

  • Participants
  • Parent commits 715440e
  • Branches default

Comments (0)

Files changed (1)

File forest.py

View file
 def findcmd(ui, cmd, table):
     """Find and execute mercurial.*.findcmd(ui, cmd[, table])."""
     try:
-        return findcmd.findcmd(ui, cmd, table)
+        # ui argument was removed as of b4c035057d34
+        return findcmd.findcmd(cmd, table)
     except TypeError:
-        return findcmd.findcmd(ui, cmd)
+        try:
+            return findcmd.findcmd(ui, cmd, table)
+        except TypeError:
+            return findcmd.findcmd(ui, cmd)
 try:
     findcmd.findcmd = cmdutil.findcmd
     findcmd.__doc__ = cmdutil.findcmd.__doc__