# HG changeset patch # User Raphaël Gomès # Date 2024-07-29 18:35:44 # Node ID bd43465af568696ea260cfd8f7ef71b3c65a93b9 # Parent 9fbdf355c9167f594c3ed7de991d2529dd948423 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. diff --git a/mercurial/store.py b/mercurial/store.py --- a/mercurial/store.py +++ b/mercurial/store.py @@ -1122,6 +1122,7 @@ class _fncachevfs(vfsmod.proxyvfs): 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)