hgext/convert/subversion.py
changeset 17052 1bd18c415eec
parent 17031 f17b561cc473
child 17053 0e4171fdb9d4
equal deleted inserted replaced
17051:c5ed575f3137 17052:1bd18c415eec
   187             }
   187             }
   188 def issvnurl(ui, url):
   188 def issvnurl(ui, url):
   189     try:
   189     try:
   190         proto, path = url.split('://', 1)
   190         proto, path = url.split('://', 1)
   191         if proto == 'file':
   191         if proto == 'file':
       
   192             if (os.name == 'nt' and path[:1] == '/' and path[1:2].isalpha()
       
   193                 and path[2:6].lower() == '%3a/'):
       
   194                 path = path[:2] + ':/' + path[6:]
   192             path = urllib.url2pathname(path)
   195             path = urllib.url2pathname(path)
   193     except ValueError:
   196     except ValueError:
   194         proto = 'file'
   197         proto = 'file'
   195         path = os.path.abspath(url)
   198         path = os.path.abspath(url)
   196     if proto == 'file':
   199     if proto == 'file':