mercurial/util.py
changeset 52098 82e2c99c84f3
parent 51934 fa7059f031a9
child 52360 fca7d38e040b
--- a/mercurial/util.py	Sat Oct 26 02:03:54 2024 +0200
+++ b/mercurial/util.py	Sat Oct 26 01:38:20 2024 +0200
@@ -514,6 +514,16 @@
         raise
 
 
+class uncacheable_cachestat:
+    stat: Optional[os.stat_result]
+
+    def __init__(self) -> None:
+        self.stat = None
+
+    def cacheable(self) -> bool:
+        return False
+
+
 class fileobjectproxy:
     """A proxy around file objects that tells a watcher when events occur.