diff mercurial/store.py @ 52171: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 a260d326458f
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)