hgext/convert/subversion.py
changeset 5842 111ed8c871bf
parent 5841 07ca22a72dcc
child 5854 8b95f598097c
--- a/hgext/convert/subversion.py	Fri Jan 11 14:06:05 2008 -0600
+++ b/hgext/convert/subversion.py	Wed Jan 09 21:30:13 2008 +0900
@@ -53,7 +53,7 @@
     if os.path.isdir(path):
         path = os.path.normpath(os.path.abspath(path))
         if os.name == 'nt':
-            path = '/' + path.replace('\\', '/')
+            path = '/' + util.normpath(path)
         return 'file://%s' % path
     return path
 
@@ -751,7 +751,7 @@
                               os.path.basename(path))
                     commandline(ui, 'svnadmin').run0('create', path)
                     created = path
-                path = path.replace('\\', '/')
+                path = util.normpath(path)
                 if not path.startswith('/'):
                     path = '/' + path
                 path = 'file://' + path