##// END OF EJS Templates
url: catch UNC paths as yet another Windows special case (issue2808)
Matt Mackall -
r14699:388af80c stable
parent child Browse files
Show More
@@ -1359,6 +1359,8 b' class url(object):'
1359 <url scheme: 'bundle', path: '../foo'>
1359 <url scheme: 'bundle', path: '../foo'>
1360 >>> url(r'c:\foo\bar')
1360 >>> url(r'c:\foo\bar')
1361 <url path: 'c:\\foo\\bar'>
1361 <url path: 'c:\\foo\\bar'>
1362 >>> url(r'\\blah\blah\blah')
1363 <url path: '\\\\blah\\blah\\blah'>
1362
1364
1363 Authentication credentials:
1365 Authentication credentials:
1364
1366
@@ -1387,8 +1389,8 b' class url(object):'
1387 self._hostport = ''
1389 self._hostport = ''
1388 self._origpath = path
1390 self._origpath = path
1389
1391
1390 # special case for Windows drive letters
1392 # special case for Windows drive letters and UNC paths
1391 if hasdriveletter(path):
1393 if hasdriveletter(path) or path.startswith(r'\\'):
1392 self.path = path
1394 self.path = path
1393 return
1395 return
1394
1396
General Comments 0
You need to be logged in to leave comments. Login now