Browse Source

patch for latest Mercurial

master
parent
commit
ab2a502627
  1. 18
      tailor/tailor.patch
  2. 4
      tailor/tailor.spec

18
tailor/tailor.patch

@ -0,0 +1,18 @@
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

4
tailor/tailor.spec

@ -32,10 +32,11 @@ Class: EVAL
Group: SCM Group: SCM
License: GPL License: GPL
Version: 0.9.35 Version: 0.9.35
Release: 20080602 Release: 20120606
# list of sources # list of sources
Source0: http://darcs.arstecnica.it/tailor-%{version}.tar.gz Source0: http://darcs.arstecnica.it/tailor-%{version}.tar.gz
Patch0: tailor.patch
# build information # build information
BuildPreReq: OpenPKG, openpkg >= 20100101, python BuildPreReq: OpenPKG, openpkg >= 20100101, python
@ -55,6 +56,7 @@ PreReq: OpenPKG, openpkg >= 20100101, python
%prep %prep
%setup -q %setup -q
%patch -p0
%build %build

Loading…
Cancel
Save