# HG changeset patch # User Pierre-Yves David # Date 2019-03-11 01:35:18 # Node ID 32338e27bb9d437892aa32fcb13b427fa5ab56ee # Parent 9f45d3d526f9ebaae1a98ca0e4a01a9f63b2e7bb 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. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -2132,6 +2132,8 @@ class localrepository(object): 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() diff --git a/tests/test-debugcommands.t b/tests/test-debugcommands.t --- a/tests/test-debugcommands.t +++ b/tests/test-debugcommands.t @@ -545,6 +545,7 @@ Test cache warming command .hg/cache/tags2 .hg/cache/rbc-revs-v1 .hg/cache/rbc-names-v1 + .hg/cache/hgtagsfnodes1 .hg/cache/branch2-served Test debugcolor diff --git a/tests/test-server-view.t b/tests/test-server-view.t --- a/tests/test-server-view.t +++ b/tests/test-server-view.t @@ -51,6 +51,7 @@ Check same result using `experimental.ex $ ls -1 test/.hg/cache/ branch2-base%89c45d2fa07e branch2-served + hgtagsfnodes1 rbc-names-v1 rbc-revs-v1 tags2