##// END OF EJS Templates
Fix issue 1782 don't do url2pathname conversion for urls...
Grauw -
r9521:e3ce0c30 default
parent child Browse files
Show More
@@ -153,11 +153,13 b" protomap = {'http': httpcheck,"
153 153 def issvnurl(url):
154 154 try:
155 155 proto, path = url.split('://', 1)
156 path = urllib.url2pathname(path)
156 if proto == 'file':
157 path = urllib.url2pathname(path)
157 158 except ValueError:
158 159 proto = 'file'
159 160 path = os.path.abspath(url)
160 path = path.replace(os.sep, '/')
161 if proto == 'file':
162 path = path.replace(os.sep, '/')
161 163 check = protomap.get(proto, lambda p, p2: False)
162 164 while '/' in path:
163 165 if check(path, proto):
General Comments 0
You need to be logged in to leave comments. Login now