##// END OF EJS Templates
tags-cache: add a dedicated warm cache function to hgtagsfnodescache...
marmoute -
r52489:6378d575 default
parent child Browse files
Show More
@@ -2959,7 +2959,7 b' class localrepository:'
2959 2959
2960 2960 if repository.CACHE_FILE_NODE_TAGS in caches:
2961 2961 # accessing fnode cache warms the cache
2962 tagsmod.fnoderevs(self.ui, unfi, unfi.changelog.revs())
2962 tagsmod.warm_cache(self)
2963 2963
2964 2964 if repository.CACHE_TAGS_DEFAULT in caches:
2965 2965 # accessing tags warm the cache
@@ -80,6 +80,12 b' from .utils import stringutil'
80 80 # setting it) for each tag is last.
81 81
82 82
83 def warm_cache(repo):
84 """ensure the cache is properly filled"""
85 unfi = repo.unfiltered()
86 fnoderevs(repo.ui, unfi, unfi.changelog.revs())
87
88
83 89 def fnoderevs(ui, repo, revs):
84 90 """return the list of '.hgtags' fnodes used in a set revisions
85 91
General Comments 0
You need to be logged in to leave comments. Login now