# HG changeset patch # User Franz Glasner # Date 1519386505 -3600 # Node ID f772a6cc2f67044ec15ec19f3bfc13ecf62da8d9 # Parent 53c9f2f6a13e480bc90560164087bed28a03d650 Make a plain Windows UNC path into a file: URL for HGpath and friends. Within Mercurial they are normalized to plain Windows UNC paths. diff -r 53c9f2f6a13e -r f772a6cc2f67 extensions/kwarchive.py --- a/extensions/kwarchive.py Fri Feb 23 09:49:10 2018 +0100 +++ b/extensions/kwarchive.py Fri Feb 23 12:48:25 2018 +0100 @@ -353,6 +353,9 @@ 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"\\\\"): + path_uri = b"file:///" + path_uri.replace(b'\\', b'/') keywords = { "HGpath": path_uri, "HGrevision": ctx.hex(),