Mercurial > hg
changeset 52175:bd43465af568
fncache: add attribute to check whether we're using dotencode
This will make it easy to know if we can use the Rust implementation that
doesn't support older forms of encoding.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Mon, 29 Jul 2024 20:35:44 +0200 |
parents | 9fbdf355c916 |
children | 72bc29f01570 |
files | mercurial/store.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/store.py Mon Jul 29 20:34:38 2024 +0200 +++ b/mercurial/store.py Mon Jul 29 20:35:44 2024 +0200 @@ -1122,6 +1122,7 @@ vfsmod.proxyvfs.__init__(self, vfs) self.fncache: fncache = fnc self.encode = encode + self.uses_dotencode = encode is _pathencode def __call__(self, path, mode=b'r', *args, **kw): encoded = self.encode(path)