mercurial/tags.py
branchstable
changeset 51152 6a78b5a1d1ab
parent 50942 75d3306fbc9a
child 51526 a03fa40afd01
--- a/mercurial/tags.py	Sun Dec 03 04:43:08 2023 +0100
+++ b/mercurial/tags.py	Sun Dec 03 04:49:49 2023 +0100
@@ -916,9 +916,13 @@
     repo.cachevfs.tryunlink(_filename(repo))
 
 
+# a small attribute to help `hg perf::tags` to detect a fixed version.
+clear_cache_fnodes_is_working = True
+
+
 def clear_cache_fnodes(repo):
     """function used by the perf extension to clear "file node cache"""
-    repo.cachevfs.tryunlink(_filename(repo))
+    repo.cachevfs.tryunlink(_fnodescachefile)
 
 
 def forget_fnodes(repo, revs):