Show More
@@ -973,11 +973,10 b' def perftags(ui, repo, **opts):' | |||||
973 | "clear_cache_on_disk", |
|
973 | "clear_cache_on_disk", | |
974 | _default_clear_on_disk_tags_cache, |
|
974 | _default_clear_on_disk_tags_cache, | |
975 | ) |
|
975 | ) | |
976 | clear_fnodes_fn = getattr( |
|
976 | if getattr(tags, 'clear_cache_fnodes_is_working', False): | |
977 | tags, |
|
977 | clear_fnodes_fn = tags.clear_cache_fnodes | |
978 | "clear_cache_fnodes", |
|
978 | else: | |
979 |
_default_clear_on_disk_tags_fnodes_cache |
|
979 | clear_fnodes_fn = _default_clear_on_disk_tags_fnodes_cache | |
980 | ) |
|
|||
981 | clear_fnodes_rev_fn = getattr( |
|
980 | clear_fnodes_rev_fn = getattr( | |
982 | tags, |
|
981 | tags, | |
983 | "forget_fnodes", |
|
982 | "forget_fnodes", |
@@ -916,9 +916,13 b' def clear_cache_on_disk(repo):' | |||||
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(_f |
|
925 | repo.cachevfs.tryunlink(_fnodescachefile) | |
922 |
|
926 | |||
923 |
|
927 | |||
924 | def forget_fnodes(repo, revs): |
|
928 | def forget_fnodes(repo, revs): |
General Comments 0
You need to be logged in to leave comments.
Login now