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.
--- 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()
--- a/tests/test-debugcommands.t Mon Mar 11 01:10:20 2019 +0100
+++ b/tests/test-debugcommands.t Mon Mar 11 02:35:18 2019 +0100
@@ -545,6 +545,7 @@
.hg/cache/tags2
.hg/cache/rbc-revs-v1
.hg/cache/rbc-names-v1
+ .hg/cache/hgtagsfnodes1
.hg/cache/branch2-served
Test debugcolor
--- a/tests/test-server-view.t Mon Mar 11 01:10:20 2019 +0100
+++ b/tests/test-server-view.t Mon Mar 11 02:35:18 2019 +0100
@@ -51,6 +51,7 @@
$ ls -1 test/.hg/cache/
branch2-base%89c45d2fa07e
branch2-served
+ hgtagsfnodes1
rbc-names-v1
rbc-revs-v1
tags2