##// END OF EJS Templates
url: handle urls of the form file:///c:/foo/bar/ correctly
Matt Mackall -
r14915:28edd650 stable
parent child Browse files
Show More
@@ -1353,6 +1353,8 b' class url(object):'
1353 <url scheme: 'ssh', host: '[::1]', port: '2200', path: '/home/joe/repo'>
1353 <url scheme: 'ssh', host: '[::1]', port: '2200', path: '/home/joe/repo'>
1354 >>> url('file:///home/joe/repo')
1354 >>> url('file:///home/joe/repo')
1355 <url scheme: 'file', path: '/home/joe/repo'>
1355 <url scheme: 'file', path: '/home/joe/repo'>
1356 >>> url('file:///c:/temp/foo/')
1357 <url scheme: 'file', path: 'c:/temp/foo/'>
1356 >>> url('bundle:foo')
1358 >>> url('bundle:foo')
1357 <url scheme: 'bundle', path: 'foo'>
1359 <url scheme: 'bundle', path: 'foo'>
1358 >>> url('bundle://../foo')
1360 >>> url('bundle://../foo')
@@ -1442,7 +1444,7 b' class url(object):'
1442 path = None
1444 path = None
1443 if not self.host:
1445 if not self.host:
1444 self.host = None
1446 self.host = None
1445 if path:
1447 if path and not hasdriveletter(path):
1446 path = '/' + path
1448 path = '/' + path
1447
1449
1448 if self.host and '@' in self.host:
1450 if self.host and '@' in self.host:
General Comments 0
You need to be logged in to leave comments. Login now