diff --git a/mercurial/util.py b/mercurial/util.py index 2d996af02fd8353fc1b899749691f69241cd1d01_bWVyY3VyaWFsL3V0aWwucHk=..dadb00a0ec0f1560c632419fc606d9bb95ba31dd_bWVyY3VyaWFsL3V0aWwucHk= 100644 --- a/mercurial/util.py +++ b/mercurial/util.py @@ -2380,7 +2380,7 @@ _safechars = "!~*'()+" _safepchars = "/!~*'()+:\\" - _matchscheme = remod.compile(r'^[a-zA-Z0-9+.\-]+:').match + _matchscheme = remod.compile('^[a-zA-Z0-9+.\\-]+:').match def __init__(self, path, parsequery=True, parsefragment=True): # We slowly chomp away at path until we have only the path left @@ -2394,7 +2394,7 @@ path, self.fragment = path.split('#', 1) # special case for Windows drive letters and UNC paths - if hasdriveletter(path) or path.startswith(r'\\'): + if hasdriveletter(path) or path.startswith('\\\\'): self.path = path return