mercurial/pathutil.py
branchstable
changeset 51648 6454c117c6a4
parent 51592 24844407fa0d
child 51863 f4733654f144
--- a/mercurial/pathutil.py	Thu Jun 13 09:52:39 2024 +0200
+++ b/mercurial/pathutil.py	Mon Jun 24 12:05:31 2024 +0200
@@ -180,6 +180,13 @@
                 self.auditeddir.clear()
                 self._cached = False
 
+    def clear_audit_cache(self):
+        """reset all audit cache
+
+        intended for debug and performance benchmark purposes"""
+        self.audited.clear()
+        self.auditeddir.clear()
+
 
 def canonpath(
     root: bytes,