[PATCH 1 of 1] Fix issue 1782 don’t do url2pathname conversion for urls

Laurens Holst laurens.nospam at grauw.nl
Thu Aug 6 17:01:12 CDT 2009


# HG changeset patch
# User Grauw
# Date 1249595478 -7200
# Node ID 3556f523efb253634e879ba22187d40278d26a29
# Parent  2de7d96593db63a7a06c653feb7c761bbc9e208f
Fix issue 1782 don’t do url2pathname conversion for urls

diff -r 2de7d96593db -r 3556f523efb2 hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Mon Jul 27 02:27:24 2009 +0200
+++ b/hgext/convert/subversion.py	Thu Aug 06 23:51:18 2009 +0200
@@ -153,7 +153,8 @@
 def issvnurl(url):
     try:
         proto, path = url.split('://', 1)
-        path = urllib.url2pathname(path)
+        if path == 'file':
+            path = urllib.url2pathname(path)
     except ValueError:
         proto = 'file'
         path = os.path.abspath(url)


More information about the Mercurial-devel mailing list