mercurial/tags.py
branchstable
changeset 50938 f02b62b7b056
parent 50036 bb6eaa65d12a
child 50939 e4c4adb694f5
--- a/mercurial/tags.py	Fri Sep 08 15:33:03 2023 +0200
+++ b/mercurial/tags.py	Thu Jun 22 16:03:18 2023 +0200
@@ -910,3 +910,13 @@
             )
         finally:
             lock.release()
+
+
+def clear_cache_on_disk(repo):
+    """function used by the perf extension to "tags" cache"""
+    repo.cachevfs.tryunlink(_filename(repo))
+
+
+def clear_cache_fnodes(repo):
+    """function used by the perf extension to clear "file node cache"""
+    repo.cachevfs.tryunlink(_filename(repo))