##// 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 def issvnurl(url):
153 def issvnurl(url):
154 try:
154 try:
155 proto, path = url.split('://', 1)
155 proto, path = url.split('://', 1)
156 path = urllib.url2pathname(path)
156 if proto == 'file':
157 path = urllib.url2pathname(path)
157 except ValueError:
158 except ValueError:
158 proto = 'file'
159 proto = 'file'
159 path = os.path.abspath(url)
160 path = os.path.abspath(url)
160 path = path.replace(os.sep, '/')
161 if proto == 'file':
162 path = path.replace(os.sep, '/')
161 check = protomap.get(proto, lambda p, p2: False)
163 check = protomap.get(proto, lambda p, p2: False)
162 while '/' in path:
164 while '/' in path:
163 if check(path, proto):
165 if check(path, proto):
General Comments 0
You need to be logged in to leave comments. Login now