comparison 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
comparison
equal deleted inserted replaced
42126:ef0e3cc684b3 42127:70b71421fd33
70 $ cd .. 70 $ cd ..
71 71
72 Test the feature 72 Test the feature
73 ================ 73 ================
74 74
75 Check cache pre-warm
76 --------------------
77
78 $ ls -1 repo-with-hidden/.hg/cache
79 branch2
80 branch2-base
81 branch2-served
82 branch2-served.hidden
83 branch2-visible
84 rbc-names-v1
85 rbc-revs-v1
86 tags2
87 tags2-visible
88
75 Check that the `served.hidden` repoview 89 Check that the `served.hidden` repoview
76 --------------------------------------- 90 ---------------------------------------
77 91
78 $ hg -R repo-with-hidden serve -p $HGPORT -d --pid-file hg.pid --config web.view=served.hidden 92 $ hg -R repo-with-hidden serve -p $HGPORT -d --pid-file hg.pid --config web.view=served.hidden
79 $ cat hg.pid >> $DAEMON_PIDS 93 $ cat hg.pid >> $DAEMON_PIDS