[73499] trunk/dports/python/py26-hgsvn

easieste at macports.org easieste at macports.org
Mon Nov 15 04:56:22 PST 2010


Revision: 73499
          http://trac.macports.org/changeset/73499
Author:   easieste at macports.org
Date:     2010-11-15 04:56:19 -0800 (Mon, 15 Nov 2010)
Log Message:
-----------
Fix problem with failing output from mercurial-1.7

c.f. http://bitbucket.org/andialbrecht/hgsvn/issue/91/all-console-output-disappears-with

hgsvn is in maintance mode upstream, so patching in MacPorts there is
no commitment to an upstream release.  Users of 'hgsvn' are advised to
transition to 'python/hgsubversion'/

Added dependencies on mercurial and subversion.

Modified Paths:
--------------
    trunk/dports/python/py26-hgsvn/Portfile

Added Paths:
-----------
    trunk/dports/python/py26-hgsvn/files/patch-hgsvn-ui.py.diff

Modified: trunk/dports/python/py26-hgsvn/Portfile
===================================================================
--- trunk/dports/python/py26-hgsvn/Portfile	2010-11-15 12:11:38 UTC (rev 73498)
+++ trunk/dports/python/py26-hgsvn/Portfile	2010-11-15 12:56:19 UTC (rev 73499)
@@ -5,6 +5,7 @@
 
 name                    py26-hgsvn
 version                 0.1.8
+revision                1
 categories              python devel
 platforms               darwin
 maintainers             snc openmaintainer
@@ -20,7 +21,12 @@
                         sha1    029eeb5646228194d4677d2f4e3e33bc41da44cc \
                         rmd160  af056571b2d25110b61cffbf5512cb35967a7c1f
 
-depends_lib-append      port:py26-distribute
+depends_lib             port:mercurial \
+                        port:subversion \
+                        port:py26-distribute
+
+patchfiles              patch-hgsvn-ui.py.diff
+
 post-extract            { file copy ${filespath}/ez_setup.py ${worksrcpath} }
 
 post-destroot   {

Added: trunk/dports/python/py26-hgsvn/files/patch-hgsvn-ui.py.diff
===================================================================
--- trunk/dports/python/py26-hgsvn/files/patch-hgsvn-ui.py.diff	                        (rev 0)
+++ trunk/dports/python/py26-hgsvn/files/patch-hgsvn-ui.py.diff	2010-11-15 12:56:19 UTC (rev 73499)
@@ -0,0 +1,16 @@
+diff -r 02f257a83bbe hgsvn/ui.py
+--- hgsvn/ui.py	Mon Nov 15 10:10:07 2010 +0100
++++ hgsvn/ui.py	Mon Nov 15 11:07:21 2010 +0100
+@@ -7,7 +7,11 @@
+ 
+ try:
+     # First try to import the Mercurial implementation.
+-    from mercurial.util import termwidth
++    import mercurial.ui
++    if getattr(mercurial.ui.ui(), 'termwidth', False):
++        termwidth = mercurial.ui.ui().termwidth 
++    else:
++        from mercurial.util import termwidth
+ except ImportError:
+     # Fallback to local copy of Mercurial's implementation.
+     def termwidth():
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101115/442b2969/attachment.html>


More information about the macports-changes mailing list