diff -r 8ba08a16e4e0 -r 974490c1768f mercurial/url.py --- 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('bundle:foo') + >>> url('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]: