Mercurial > hg
comparison tests/test-remotefilelog-bgprefetch.t @ 40507:e2a1584e9e3f
remotefilelog: rip out lz4 support
Some methods are left teased out so it's easier to build a migration
extension from v1 packs to v2. I also anticipate those methods will be
of use if we get around to adding configurable compression engines
before we end up jettisoning packs.
I think it would make sense to register one-shot `compress` and
`decompress` methods on our compression engines in util.py, but
indygreg mentioned that might not be straightforward.
Differential Revision: https://phab.mercurial-scm.org/D4944
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 04 Oct 2018 00:11:37 -0400 |
parents | 10c10da14c5d |
children | 95a079ea1e19 |
comparison
equal
deleted
inserted
replaced
40506:10c10da14c5d | 40507:e2a1584e9e3f |
---|---|
105 $ sleep 0.5 | 105 $ sleep 0.5 |
106 $ hg debugwaitonprefetch >/dev/null 2>%1 | 106 $ hg debugwaitonprefetch >/dev/null 2>%1 |
107 $ sleep 0.5 | 107 $ sleep 0.5 |
108 $ hg debugwaitonrepack >/dev/null 2>%1 | 108 $ hg debugwaitonrepack >/dev/null 2>%1 |
109 $ find $CACHEDIR -type f | sort | 109 $ find $CACHEDIR -type f | sort |
110 $TESTTMP/hgcache/master/packs/3616094d229ed39e2593f79c772676d4ec00253a.dataidx | |
111 $TESTTMP/hgcache/master/packs/3616094d229ed39e2593f79c772676d4ec00253a.datapack | |
112 $TESTTMP/hgcache/master/packs/6e8633deba6e544e5f8edbd7b996d6e31a2c42ae.histidx | 110 $TESTTMP/hgcache/master/packs/6e8633deba6e544e5f8edbd7b996d6e31a2c42ae.histidx |
113 $TESTTMP/hgcache/master/packs/6e8633deba6e544e5f8edbd7b996d6e31a2c42ae.histpack | 111 $TESTTMP/hgcache/master/packs/6e8633deba6e544e5f8edbd7b996d6e31a2c42ae.histpack |
112 $TESTTMP/hgcache/master/packs/8ce5ab3745465ab83bba30a7b9c295e0c8404652.dataidx | |
113 $TESTTMP/hgcache/master/packs/8ce5ab3745465ab83bba30a7b9c295e0c8404652.datapack | |
114 $TESTTMP/hgcache/master/packs/repacklock | 114 $TESTTMP/hgcache/master/packs/repacklock |
115 $TESTTMP/hgcache/repos | 115 $TESTTMP/hgcache/repos |
116 | 116 |
117 # background prefetch with repack on update when wcprevset configured | 117 # background prefetch with repack on update when wcprevset configured |
118 | 118 |
143 $ sleep 1 | 143 $ sleep 1 |
144 $ hg debugwaitonrepack >/dev/null 2>%1 | 144 $ hg debugwaitonrepack >/dev/null 2>%1 |
145 $ find $CACHEDIR -type f | sort | 145 $ find $CACHEDIR -type f | sort |
146 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx | 146 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx |
147 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack | 147 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack |
148 $TESTTMP/hgcache/master/packs/ac19aff076286bebe3ff108c96c6445a0fe27c46.dataidx | 148 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx |
149 $TESTTMP/hgcache/master/packs/ac19aff076286bebe3ff108c96c6445a0fe27c46.datapack | 149 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.datapack |
150 $TESTTMP/hgcache/master/packs/repacklock | 150 $TESTTMP/hgcache/master/packs/repacklock |
151 $TESTTMP/hgcache/repos | 151 $TESTTMP/hgcache/repos |
152 | 152 |
153 # Ensure that file 'w' was prefetched - it was not part of the update operation and therefore | 153 # Ensure that file 'w' was prefetched - it was not part of the update operation and therefore |
154 # could only be downloaded by the background prefetch | 154 # could only be downloaded by the background prefetch |
155 | 155 |
156 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` | 156 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` |
157 $TESTTMP/hgcache/master/packs/ac19aff076286bebe3ff108c96c6445a0fe27c46: | 157 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407: |
158 w: | 158 w: |
159 Node Delta Base Delta Length Blob Size | 159 Node Delta Base Delta Length Blob Size |
160 bb6ccd5dceaa 000000000000 2 2 | 160 bb6ccd5dceaa 000000000000 2 2 |
161 | 161 |
162 Total: 2 2 (0.0% bigger) | 162 Total: 2 2 (0.0% bigger) |
195 $ sleep 1 | 195 $ sleep 1 |
196 $ hg debugwaitonrepack >/dev/null 2>%1 | 196 $ hg debugwaitonrepack >/dev/null 2>%1 |
197 $ find $CACHEDIR -type f | sort | 197 $ find $CACHEDIR -type f | sort |
198 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx | 198 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx |
199 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack | 199 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack |
200 $TESTTMP/hgcache/master/packs/ac19aff076286bebe3ff108c96c6445a0fe27c46.dataidx | 200 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx |
201 $TESTTMP/hgcache/master/packs/ac19aff076286bebe3ff108c96c6445a0fe27c46.datapack | 201 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.datapack |
202 $TESTTMP/hgcache/master/packs/repacklock | 202 $TESTTMP/hgcache/master/packs/repacklock |
203 $TESTTMP/hgcache/repos | 203 $TESTTMP/hgcache/repos |
204 | 204 |
205 # Ensure that file 'w' was prefetched - it was not part of the commit operation and therefore | 205 # Ensure that file 'w' was prefetched - it was not part of the commit operation and therefore |
206 # could only be downloaded by the background prefetch | 206 # could only be downloaded by the background prefetch |
207 | 207 |
208 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` | 208 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` |
209 $TESTTMP/hgcache/master/packs/ac19aff076286bebe3ff108c96c6445a0fe27c46: | 209 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407: |
210 w: | 210 w: |
211 Node Delta Base Delta Length Blob Size | 211 Node Delta Base Delta Length Blob Size |
212 bb6ccd5dceaa 000000000000 2 2 | 212 bb6ccd5dceaa 000000000000 2 2 |
213 | 213 |
214 Total: 2 2 (0.0% bigger) | 214 Total: 2 2 (0.0% bigger) |
247 | 247 |
248 # Ensure that file 'y' was prefetched - it was not part of the rebase operation and therefore | 248 # Ensure that file 'y' was prefetched - it was not part of the rebase operation and therefore |
249 # could only be downloaded by the background prefetch | 249 # could only be downloaded by the background prefetch |
250 | 250 |
251 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` | 251 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` |
252 $TESTTMP/hgcache/master/packs/ac19aff076286bebe3ff108c96c6445a0fe27c46: | 252 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407: |
253 w: | 253 w: |
254 Node Delta Base Delta Length Blob Size | 254 Node Delta Base Delta Length Blob Size |
255 bb6ccd5dceaa 000000000000 2 2 | 255 bb6ccd5dceaa 000000000000 2 2 |
256 | 256 |
257 Total: 2 2 (0.0% bigger) | 257 Total: 2 2 (0.0% bigger) |
287 $ hg debugwaitonrepack >/dev/null 2>%1 | 287 $ hg debugwaitonrepack >/dev/null 2>%1 |
288 | 288 |
289 $ find $CACHEDIR -type f | sort | 289 $ find $CACHEDIR -type f | sort |
290 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx | 290 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx |
291 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack | 291 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack |
292 $TESTTMP/hgcache/master/packs/ac19aff076286bebe3ff108c96c6445a0fe27c46.dataidx | 292 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx |
293 $TESTTMP/hgcache/master/packs/ac19aff076286bebe3ff108c96c6445a0fe27c46.datapack | 293 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.datapack |
294 $TESTTMP/hgcache/master/packs/repacklock | 294 $TESTTMP/hgcache/master/packs/repacklock |
295 $TESTTMP/hgcache/repos | 295 $TESTTMP/hgcache/repos |
296 | 296 |
297 # Ensure that files were prefetched | 297 # Ensure that files were prefetched |
298 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` | 298 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` |
299 $TESTTMP/hgcache/master/packs/ac19aff076286bebe3ff108c96c6445a0fe27c46: | 299 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407: |
300 w: | 300 w: |
301 Node Delta Base Delta Length Blob Size | 301 Node Delta Base Delta Length Blob Size |
302 bb6ccd5dceaa 000000000000 2 2 | 302 bb6ccd5dceaa 000000000000 2 2 |
303 | 303 |
304 Total: 2 2 (0.0% bigger) | 304 Total: 2 2 (0.0% bigger) |
331 $ hg debugwaitonrepack >/dev/null 2>%1 | 331 $ hg debugwaitonrepack >/dev/null 2>%1 |
332 | 332 |
333 $ find $CACHEDIR -type f | sort | 333 $ find $CACHEDIR -type f | sort |
334 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx | 334 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx |
335 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack | 335 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack |
336 $TESTTMP/hgcache/master/packs/ac19aff076286bebe3ff108c96c6445a0fe27c46.dataidx | 336 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx |
337 $TESTTMP/hgcache/master/packs/ac19aff076286bebe3ff108c96c6445a0fe27c46.datapack | 337 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.datapack |
338 $TESTTMP/hgcache/master/packs/repacklock | 338 $TESTTMP/hgcache/master/packs/repacklock |
339 $TESTTMP/hgcache/repos | 339 $TESTTMP/hgcache/repos |
340 | 340 |
341 # Ensure that files were prefetched | 341 # Ensure that files were prefetched |
342 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` | 342 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` |
343 $TESTTMP/hgcache/master/packs/ac19aff076286bebe3ff108c96c6445a0fe27c46: | 343 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407: |
344 w: | 344 w: |
345 Node Delta Base Delta Length Blob Size | 345 Node Delta Base Delta Length Blob Size |
346 bb6ccd5dceaa 000000000000 2 2 | 346 bb6ccd5dceaa 000000000000 2 2 |
347 | 347 |
348 Total: 2 2 (0.0% bigger) | 348 Total: 2 2 (0.0% bigger) |