convert/svn: fix pathname parsing from URL under Windows
authorPatrick Mezard <pmezard@gmail.com>
Sun, 26 Apr 2009 20:19:40 +0200
changeset 8214 a2af1d92b913
parent 8213 ac9c4049fd29
child 8215 227707c90548
convert/svn: fix pathname parsing from URL under Windows
hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	Sun Apr 26 19:39:15 2009 +0200
+++ b/hgext/convert/subversion.py	Sun Apr 26 20:19:40 2009 +0200
@@ -159,6 +159,7 @@
     if not '://' in url:
         return False
     proto, path = url.split('://', 1)
+    path = urllib.url2pathname(path).replace(os.sep, '/')
     check = protomap.get(proto, lambda p, p2: False)
     while '/' in path:
         if check(path, proto):