comparison tests/test-discovery-obshashrange-cache.t @ 6338:a55b9b917a08 stable

evolve: make _obshashcache slightly more tolerant to fs issues (issue6246) It will fall back to memory db when there are problems opening the persistent cache file.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 01 Dec 2022 17:09:47 +0400
parents e97fbded40a5
children 804c55a6a423
comparison
equal deleted inserted replaced
6337:58115cf37211 6338:a55b9b917a08
153 OBSEXC: computing relevant nodes 153 OBSEXC: computing relevant nodes
154 OBSEXC: looking for common markers in 8 nodes 154 OBSEXC: looking for common markers in 8 nodes
155 OBSEXC: markers already in sync 155 OBSEXC: markers already in sync
156 no changes found 156 no changes found
157 [1] 157 [1]
158
159 suddenly cache is inaccessible, check that the push still succeeds (issue6246)
160
161 $ chmod 0000 server/.hg/cache/*.sqlite
162
163 $ hg -R main push ssh://user@dummy/server
164 pushing to ssh://user@dummy/server
165 searching for changes
166 OBSEXC: computing relevant nodes
167 OBSEXC: looking for common markers in 8 nodes
168 OBSEXC: markers already in sync
169 no changes found
170 [1]
171
172 $ chmod 0644 server/.hg/cache/*.sqlite
158 173
159 client cache is warm 174 client cache is warm
160 175
161 $ f -s main/.hg/cache/evoext* 176 $ f -s main/.hg/cache/evoext*
162 main/.hg/cache/evoext-depthcache-00: size=88 177 main/.hg/cache/evoext-depthcache-00: size=88