logo       
Google Custom Search
    AddThis Social Bookmark Button

Patch for recent Mercurial: msg#00089

Subject: Patch for recent Mercurial
Looks like some internal commands moved around in the Mercurial source.
Here's a patch that seems to work for me:

New patches:

[[Mercurial] Look for findcmd in module cmdutil instead of module commands.
dwallace@xxxxxxxx**20070627180645
 The findcmd() function was recently moved to cmdutil in Mercurial's changeset 
0c61124ad877
 
] {
hunk ./vcpx/repository/hg.py 16
-from mercurial import ui, hg, commands
+from mercurial import ui, hg, commands, cmdutil
hunk ./vcpx/repository/hg.py 326
-        if hasattr(commands, 'findcmd'):
-            if commands.findcmd.func_code.co_argcount == 1:
-                findcmd = commands.findcmd
+        if hasattr(cmdutil, 'findcmd'):
+            if cmdutil.findcmd.func_code.co_argcount == 1:
+                findcmd = cmdutil.findcmd
hunk ./vcpx/repository/hg.py 331
-                    return commands.findcmd(self._getUI(), cmd)
+                    return cmdutil.findcmd(self._getUI(), cmd)
}



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>