Mercurial > hg
changeset 42238:32338e27bb9d
updatecaches: also warm hgtagsfnodescache
Now that a full update of this cache run in a reasonable amount of time, we can
warm everything when during a full update.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 11 Mar 2019 02:35:18 +0100 |
parents | 9f45d3d526f9 |
children | 6770df6e4365 |
files | mercurial/localrepo.py tests/test-debugcommands.t tests/test-server-view.t |
diffstat | 3 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Mon Mar 11 01:10:20 2019 +0100 +++ b/mercurial/localrepo.py Mon Mar 11 02:35:18 2019 +0100 @@ -2132,6 +2132,8 @@ for ctx in self['.'].parents(): ctx.manifest() # accessing the manifest is enough + # accessing fnode cache warms the cache + tagsmod.fnoderevs(self.ui, unfi, unfi.changelog.revs()) # accessing tags warm the cache self.tags() self.filtered('served').tags()