--- a/mercurial/url.py Mon Mar 14 23:50:28 2011 +0100
+++ b/mercurial/url.py Wed Mar 30 13:34:39 2011 -0500
@@ -39,6 +39,8 @@
<url scheme: 'file', path: '/home/joe/repo'>
>>> url('bundle:foo')
<url scheme: 'bundle', path: 'foo'>
+ >>> url('c:\\\\foo\\\\bar')
+ <url path: 'c:\\\\foo\\\\bar'>
Authentication credentials:
@@ -64,6 +66,11 @@
self.port = self.path = self.query = self.fragment = None
self._localpath = True
+ # special case for Windows drive letters
+ if path[1:2] == ':' and path[0:1].isalpha():
+ self.path = path
+ return
+
if not path.startswith('/') and ':' in path:
parts = path.split(':', 1)
if parts[0]: