comparison tests/test-stream-bundle-v2.t @ 46314:95a615dd77bf

clone: make sure we warm the cache after a clone This work around any deviciency/limitation of the clone process. In our case this ensure the persistent nodemap exist with valid content. Ideally, the cloning process would also do "the right thing". However since older server will never be able to do "the right thing". The local workaround will be necessary anyway. I am not worried by the performance impact of this as `hg clone` is non-instant on large repositories where is could matters. Warming the cache if they are already correct is very fast. And if they are not already warm, this seems like a good time to do so. This impact various test as more cache are now warmed sooner, all the change should be harmless. Differential Revision: https://phab.mercurial-scm.org/D9789
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 15 Jan 2021 12:41:38 +0100
parents 181ee2118a96
children 84a93fa7ecfd
comparison
equal deleted inserted replaced
46313:4cde46f62ebf 46314:95a615dd77bf
115 D: remote created -> g 115 D: remote created -> g
116 getting D 116 getting D
117 E: remote created -> g 117 E: remote created -> g
118 getting E 118 getting E
119 5 files updated, 0 files merged, 0 files removed, 0 files unresolved 119 5 files updated, 0 files merged, 0 files removed, 0 files unresolved
120 updating the branch cache
120 (sent 4 HTTP requests and * bytes; received * bytes in responses) (glob) 121 (sent 4 HTTP requests and * bytes; received * bytes in responses) (glob)
121 122
122 $ hg clone --stream http://localhost:$HGPORT streamv2-clone-explicit --debug 123 $ hg clone --stream http://localhost:$HGPORT streamv2-clone-explicit --debug
123 using http://localhost:$HGPORT/ 124 using http://localhost:$HGPORT/
124 sending capabilities command 125 sending capabilities command
171 D: remote created -> g 172 D: remote created -> g
172 getting D 173 getting D
173 E: remote created -> g 174 E: remote created -> g
174 getting E 175 getting E
175 5 files updated, 0 files merged, 0 files removed, 0 files unresolved 176 5 files updated, 0 files merged, 0 files removed, 0 files unresolved
177 updating the branch cache
176 (sent 4 HTTP requests and * bytes; received * bytes in responses) (glob) 178 (sent 4 HTTP requests and * bytes; received * bytes in responses) (glob)