jhbuild r2094 - trunk/jhbuild/versioncontrol



Author: jsharpe
Date: Tue May 13 13:20:41 2008
New Revision: 2094
URL: http://svn.gnome.org/viewvc/jhbuild?rev=2094&view=rev

Log:
* jhbuild/versioncontrol/git.py: added urlib.unquote around the svn:external urls as this is needed in some cases.


Modified:
   trunk/jhbuild/versioncontrol/git.py

Modified: trunk/jhbuild/versioncontrol/git.py
==============================================================================
--- trunk/jhbuild/versioncontrol/git.py	(original)
+++ trunk/jhbuild/versioncontrol/git.py	Tue May 13 13:20:41 2008
@@ -26,6 +26,7 @@
 import urlparse
 import subprocess
 import re
+import urllib
 
 from jhbuild.errors import FatalError, CommandError
 from jhbuild.utils.cmds import get_output
@@ -245,10 +246,9 @@
             match = external_expr.search(line)
             if match:
                 branch = match.group(1)
-                external = re.compile("%20| ").split(match.group(2).replace("%0A", "%20").strip("%20 "))
+                external = urllib.unquote(match.group(2).replace("%0A", " ").strip("%20 ")).split()
                 revision_expr = re.compile(r"-r(\d*)")
                 i = 0
-                print external
                 while i < len(external):
                     #see if we have a revision number
                     match = revision_expr.search(external[i+1])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]