# HG changeset patch # User Franz Glasner # Date 1520238126 -3600 # Node ID 6ecb3909f95e7cec729e142dcbab47445d929304 # Parent 3c7ec88a04a57871c67d3399ab66eb6f1b9e199e Make absolute POSIX paths always start with "file://" -- a path should always have the form of an URI diff -r 3c7ec88a04a5 -r 6ecb3909f95e extensions/kwarchive.py --- a/extensions/kwarchive.py Wed Feb 28 11:11:24 2018 +0100 +++ b/extensions/kwarchive.py Mon Mar 05 09:22:06 2018 +0100 @@ -394,6 +394,9 @@ 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'/') + elif path_uri.startswith(b'/'): + # an absolute POSIX path + path_uri = b"file://" + path_uri keywords = { "HGpath": path_uri, "HGrevision": ctx.hex(),