You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
1.0 KiB
18 lines
1.0 KiB
Index: vcpx/repository/hg.py |
|
--- vcpx/repository/hg.py.orig 2008-06-02 14:14:41.000000000 +0200 |
|
+++ vcpx/repository/hg.py 2012-06-06 23:28:39.000000000 +0200 |
|
@@ -343,9 +343,12 @@ |
|
if cmdutil.findcmd.func_code.co_argcount == 2: # 0.9.4 |
|
def findcmd(cmd): |
|
return cmdutil.findcmd(self._getUI(), cmd) |
|
- elif cmdutil.findcmd.func_code.co_argcount == 3: # 0.9.5 |
|
+ elif cmdutil.findcmd.func_code.co_argcount == 3: # >= 0.9.5 |
|
def findcmd(cmd): |
|
- return cmdutil.findcmd(self._getUI(), cmd, commands.table) |
|
+ if cmdutil.findcmd.func_code.co_varnames[0] == "ui": # < 1.1.0 |
|
+ return cmdutil.findcmd(self._getUI(), cmd, commands.table) |
|
+ else: # >= 1.1.0 |
|
+ return cmdutil.findcmd(cmd, commands.table) |
|
elif hasattr(commands, 'findcmd'): # < 0.9.4 |
|
if commands.findcmd.func_code.co_argcount == 1: |
|
findcmd = commands.findcmd
|
|
|