# HG changeset patch # User Franz Glasner # Date 1519753284 -3600 # Node ID e1dc7aa60cd4b9a876b57621afdab58d5bdfea32 # Parent 36369940d31b240d8eb702ec0076214c5d82a393 Check whether the path is a path with Windows drive letters also diff -r 36369940d31b -r e1dc7aa60cd4 extensions/kwarchive.py --- a/extensions/kwarchive.py Tue Feb 27 18:28:51 2018 +0100 +++ b/extensions/kwarchive.py Tue Feb 27 18:41:24 2018 +0100 @@ -368,8 +368,11 @@ raise error.Abort(_('repository %s not found') % hgpath) else: path_uri = repo.root - # Make an URL from a Windows UNC path if path_uri.startswith(b"\\\\"): + # Make an URL from a Windows UNC path + path_uri = b"file:///" + path_uri.replace(b'\\', b'/') + elif len(path_uri) >= 2 and (b'A' <= path_uri[0].upper() <= b'Z') and path_uri[1] == b':': + # make an URL from a Windows path with drive letter path_uri = b"file:///" + path_uri.replace(b'\\', b'/') keywords = { "HGpath": path_uri,