##// 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 1359 <url scheme: 'bundle', path: '../foo'>
1360 1360 >>> url(r'c:\foo\bar')
1361 1361 <url path: 'c:\\foo\\bar'>
1362 >>> url(r'\\blah\blah\blah')
1363 <url path: '\\\\blah\\blah\\blah'>
1362 1364
1363 1365 Authentication credentials:
1364 1366
@@ -1387,8 +1389,8 b' class url(object):'
1387 1389 self._hostport = ''
1388 1390 self._origpath = path
1389 1391
1390 # special case for Windows drive letters
1391 if hasdriveletter(path):
1392 # special case for Windows drive letters and UNC paths
1393 if hasdriveletter(path) or path.startswith(r'\\'):
1392 1394 self.path = path
1393 1395 return
1394 1396
General Comments 0
You need to be logged in to leave comments. Login now