comparison mercurial/localrepo.py @ 41934:481259af4bdf

updatecaches: also warm the tags caches Resolving any name requires the tags cache to be warm. We make sure that `hg debugupdatecache` warm the tag cache entry too.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 11 Mar 2019 02:34:12 +0100
parents 2eee280a1354
children 624d6683c705
comparison
equal deleted inserted replaced
41933:2eee280a1354 41934:481259af4bdf
2093 2093
2094 # ensure the working copy parents are in the manifestfulltextcache 2094 # ensure the working copy parents are in the manifestfulltextcache
2095 for ctx in self['.'].parents(): 2095 for ctx in self['.'].parents():
2096 ctx.manifest() # accessing the manifest is enough 2096 ctx.manifest() # accessing the manifest is enough
2097 2097
2098 # accessing tags warm the cache
2099 self.tags()
2100 self.filtered('served').tags()
2101
2098 def invalidatecaches(self): 2102 def invalidatecaches(self):
2099 2103
2100 if r'_tagscache' in vars(self): 2104 if r'_tagscache' in vars(self):
2101 # can't use delattr on proxy 2105 # can't use delattr on proxy
2102 del self.__dict__[r'_tagscache'] 2106 del self.__dict__[r'_tagscache']