equal
deleted
inserted
replaced
914 def clear_cache_on_disk(repo): |
914 def clear_cache_on_disk(repo): |
915 """function used by the perf extension to "tags" cache""" |
915 """function used by the perf extension to "tags" cache""" |
916 repo.cachevfs.tryunlink(_filename(repo)) |
916 repo.cachevfs.tryunlink(_filename(repo)) |
917 |
917 |
918 |
918 |
|
919 # a small attribute to help `hg perf::tags` to detect a fixed version. |
|
920 clear_cache_fnodes_is_working = True |
|
921 |
|
922 |
919 def clear_cache_fnodes(repo): |
923 def clear_cache_fnodes(repo): |
920 """function used by the perf extension to clear "file node cache""" |
924 """function used by the perf extension to clear "file node cache""" |
921 repo.cachevfs.tryunlink(_filename(repo)) |
925 repo.cachevfs.tryunlink(_fnodescachefile) |
922 |
926 |
923 |
927 |
924 def forget_fnodes(repo, revs): |
928 def forget_fnodes(repo, revs): |
925 """function used by the perf extension to prune some entries from the fnodes |
929 """function used by the perf extension to prune some entries from the fnodes |
926 cache""" |
930 cache""" |