diff tests/test-remote-hidden.t @ 42127:70b71421fd33

repoview: keep the branchmap cache for the `served.hidden` view warm For the same reason we want to keep the cache for the `served` view up to date, we want to also keep the `served.hidden` view up to date. If some processes with a readonly access to the repo needs to access it, we better have the cache warm to avoid computing the same data over and over and over. In most case (no secret changesets), the "served" and "served.hidden" set will be identical and no cache will actually have to be updated.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 04 Apr 2019 13:58:49 +0200
parents ef0e3cc684b3
children 34a46d48d24e
line wrap: on
line diff
--- a/tests/test-remote-hidden.t	Mon May 21 17:28:35 2018 +0200
+++ b/tests/test-remote-hidden.t	Thu Apr 04 13:58:49 2019 +0200
@@ -72,6 +72,20 @@
 Test the feature
 ================
 
+Check cache pre-warm
+--------------------
+
+  $ ls -1 repo-with-hidden/.hg/cache
+  branch2
+  branch2-base
+  branch2-served
+  branch2-served.hidden
+  branch2-visible
+  rbc-names-v1
+  rbc-revs-v1
+  tags2
+  tags2-visible
+
 Check that the `served.hidden` repoview
 ---------------------------------------