Do not URL-encode '+' characters in repo URLs
authorThomas Quinot <quinot@adacore.com>
Mon, 27 Jul 2015 15:19:57 +0000 (17:19 +0200)
committerThomas Quinot <quinot@adacore.com>
Mon, 27 Jul 2015 15:19:57 +0000 (17:19 +0200)
These can legitimately appear in the schema name ("svn+ssh://") and
should not be escaped there.

svn2svn/svnclient.py

index 09d27a22bf0a7de12352997965f0534b3edac475..bbb1364d85e94f227b2adfbfa11837222308f2f9 100644 (file)
@@ -40,7 +40,7 @@ def safe_path(path, rev_number=None):
     """
     # URL-escape URL's, but leave local WC paths alone
     if "://" in path:
-        path = urllib.quote(path, ":/")
+        path = urllib.quote(path, ":/+")
     # Add peg revision
     if rev_number is not None:
         path += "@"+str(rev_number)