Ticket #18786: devel--tailor-python25.patch

File devel--tailor-python25.patch, 3.3 KB (added by Damien.Pollet@…, 15 years ago)
  • devel/tailor-python25/Portfile

    diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/tailor-python25/Portfile devel/tailor-python25/Portfile
    old new  
     1# $Id: Portfile 32006 2007-12-13 12:43:04Z ryandesign@macports.org $
     2
     3PortSystem          1.0
     4PortGroup           python25 1.0
     5
     6name                tailor-python25
     7version             0.9.35
     8categories          devel python
     9distname            tailor-${version}
     10maintainers         deric@caveo.se
     11description         Tailor is a tool to migrate changesets between different \
     12                    source control management systems.
     13long_description    Tailor is a tool to migrate changesets between ArX, \
     14                    Bazaar, Bazaar-NG, CVS, Codeville, Darcs, Git, Mercurial, \
     15                    Monotone, Subversion and Tla repositories. It is \
     16                    implemented in Python.
     17
     18homepage            http://www.darcs.net/DarcsWiki/Tailor
     19master_sites        http://darcs.arstecnica.it/
     20checksums           md5     58a6bc1c1d922b0b1e4579c6440448d1 \
     21                    sha1    442d1d11bf4ba5d54684f78783f94f753a02292e \
     22                    rmd160  a3fc4339c6e7ce1397584363d127ae1219ee3888
     23patchfiles             patch-hg.py.diff
     24post-destroot {
     25    # install docs
     26    xinstall -m 644 -W ${worksrcpath} README.rst README.html \
     27        ${destroot}/${prefix}/share/doc/${name}
     28}
  • devel/tailor-python25/files/patch-hg.py.diff

    diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/tailor-python25/files/patch-hg.py.diff devel/tailor-python25/files/patch-hg.py.diff
    old new  
     1--- vcpx/repository/hg.py.orig  2009-02-10 11:10:31.000000000 +0000
     2+++ vcpx/repository/hg.py       2009-02-10 11:11:32.000000000 +0000
     3@@ -100,7 +100,7 @@
     4 
     5         from mercurial.node import bin
     6         for rev in xrange(repo.changelog.rev(bin(sincerev)) + 1,
     7-                          repo.changelog.count()):
     8+                          len(repo.changelog)):
     9             yield self._changesetForRevision(repo, str(rev))
     10 
     11     def _applyChangeset(self, changeset):
     12@@ -343,9 +343,12 @@
     13             if cmdutil.findcmd.func_code.co_argcount == 2:     # 0.9.4
     14                 def findcmd(cmd):
     15                     return cmdutil.findcmd(self._getUI(), cmd)
     16-            elif cmdutil.findcmd.func_code.co_argcount == 3:   # 0.9.5
     17+            elif cmdutil.findcmd.func_code.co_argcount == 3: #  >= 0.9.5
     18                 def findcmd(cmd):
     19-                    return cmdutil.findcmd(self._getUI(), cmd, commands.table)
     20+                    if cmdutil.findcmd.func_code.co_varnames[0] == "ui": # < 1.1.0
     21+                        return cmdutil.findcmd(self._getUI(), cmd, commands.table)
     22+                    else: # >= 1.1.0
     23+                        return cmdutil.findcmd(cmd, commands.table)
     24         elif hasattr(commands, 'findcmd'):         # < 0.9.4
     25             if commands.findcmd.func_code.co_argcount == 1:
     26                 findcmd = commands.findcmd