hgext/convert/subversion.py
changeset 9523 d932dc655881
parent 9490 67df9f46f907
parent 9521 e3ce0c30798b
child 9598 a981ddb16b80
--- a/hgext/convert/subversion.py	Sat Oct 03 14:39:46 2009 -0500
+++ b/hgext/convert/subversion.py	Sat Oct 03 14:39:57 2009 -0500
@@ -153,11 +153,13 @@
 def issvnurl(url):
     try:
         proto, path = url.split('://', 1)
-        path = urllib.url2pathname(path)
+        if proto == 'file':
+            path = urllib.url2pathname(path)
     except ValueError:
         proto = 'file'
         path = os.path.abspath(url)
-    path = path.replace(os.sep, '/')
+    if proto == 'file':
+        path = path.replace(os.sep, '/')
     check = protomap.get(proto, lambda p, p2: False)
     while '/' in path:
         if check(path, proto):