# HG changeset patch # User Pierre-Yves David <pierre-yves.david@octobus.net> # Date 1552268052 -3600 # Mon Mar 11 02:34:12 2019 +0100 # Node ID 481259af4bdfcfb1ad84cf0803626cb26aeb3514 # Parent 2eee280a1354a36c0807ac0b148162a19c168fa1 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. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -2095,6 +2095,10 @@ for ctx in self['.'].parents(): ctx.manifest() # accessing the manifest is enough + # accessing tags warm the cache + self.tags() + self.filtered('served').tags() + def invalidatecaches(self): if r'_tagscache' in vars(self): diff --git a/tests/test-debugcommands.t b/tests/test-debugcommands.t --- a/tests/test-debugcommands.t +++ b/tests/test-debugcommands.t @@ -541,6 +541,8 @@ $ hg debugupdatecaches --debug updating the branch cache $ ls -r .hg/cache/* + .hg/cache/tags2-served + .hg/cache/tags2 .hg/cache/rbc-revs-v1 .hg/cache/rbc-names-v1 .hg/cache/manifestfulltextcache (reporevlogstore !)