changeset 8214:a2af1d92b913

convert/svn: fix pathname parsing from URL under Windows
author Patrick Mezard <pmezard@gmail.com>
date Sun, 26 Apr 2009 20:19:40 +0200
parents ac9c4049fd29
children 227707c90548
files hgext/convert/subversion.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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):