Show More
@@ -276,3 +276,103 b' A mix of adds and removes should remove ' | |||||
276 | crosschecking files in changesets and manifests |
|
276 | crosschecking files in changesets and manifests | |
277 | checking files |
|
277 | checking files | |
278 | checked 2 changesets with 9 changes to 9 files |
|
278 | checked 2 changesets with 9 changes to 9 files | |
|
279 | $ cd .. | |||
|
280 | ||||
|
281 | Test manifest cache interraction with shares | |||
|
282 | ============================================ | |||
|
283 | ||||
|
284 | $ echo '[extensions]' >> $HGRCPATH | |||
|
285 | $ echo 'share=' >> $HGRCPATH | |||
|
286 | ||||
|
287 | creating some history | |||
|
288 | ||||
|
289 | $ hg init share-source | |||
|
290 | $ hg debugbuilddag .+10 -n -R share-source | |||
|
291 | $ hg log --debug -r . -R share-source | grep 'manifest:' | |||
|
292 | manifest: -1:0000000000000000000000000000000000000000 | |||
|
293 | $ hg log -r . -R share-source | |||
|
294 | changeset: -1:000000000000 | |||
|
295 | user: | |||
|
296 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
297 | ||||
|
298 | $ hg debugmanifestfulltextcache -R share-source | |||
|
299 | cache contains 4 manifest entries, in order of most to least recent: | |||
|
300 | id: b264454d7033405774b9f353b9b37a082c1a8fba, size 496 bytes | |||
|
301 | id: c6e7b359cbbb5469e98f35acd73ac4757989c4d8, size 450 bytes | |||
|
302 | id: 8de636143b0acc5236cb47ca914bd482d82e6f35, size 405 bytes | |||
|
303 | id: 7d32499319983d90f97ca02a6c2057a1030bebbb, size 360 bytes | |||
|
304 | total cache data size 1.76 KB, on-disk 1.76 KB | |||
|
305 | $ hg -R share-source update 1 | |||
|
306 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
307 | $ hg debugmanifestfulltextcache -R share-source | |||
|
308 | cache contains 4 manifest entries, in order of most to least recent: | |||
|
309 | id: fffc37b38c401b1ab4f8b99da4b72325e31b985f, size 90 bytes | |||
|
310 | id: b264454d7033405774b9f353b9b37a082c1a8fba, size 496 bytes | |||
|
311 | id: c6e7b359cbbb5469e98f35acd73ac4757989c4d8, size 450 bytes | |||
|
312 | id: 8de636143b0acc5236cb47ca914bd482d82e6f35, size 405 bytes | |||
|
313 | total cache data size 1.50 KB, on-disk 1.50 KB | |||
|
314 | ||||
|
315 | making a share out of it. It should have its manifest cache updated | |||
|
316 | ||||
|
317 | $ hg share share-source share-dest | |||
|
318 | updating working directory | |||
|
319 | 11 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
320 | $ hg log --debug -r . -R share-dest | grep 'manifest:' | |||
|
321 | manifest: 10:b264454d7033405774b9f353b9b37a082c1a8fba | |||
|
322 | $ hg debugmanifestfulltextcache -R share-dest | |||
|
323 | cache contains 1 manifest entries, in order of most to least recent: | |||
|
324 | id: b264454d7033405774b9f353b9b37a082c1a8fba, size 496 bytes | |||
|
325 | total cache data size 520 bytes, on-disk 520 bytes | |||
|
326 | ||||
|
327 | update on various side should only affect the target share | |||
|
328 | ||||
|
329 | $ hg update -R share-dest 4 | |||
|
330 | 0 files updated, 0 files merged, 6 files removed, 0 files unresolved | |||
|
331 | $ hg log --debug -r . -R share-dest | grep 'manifest:' | |||
|
332 | manifest: 4:d45ead487afec2588272fcec88a25413c0ec7dc8 | |||
|
333 | $ hg debugmanifestfulltextcache -R share-dest | |||
|
334 | cache contains 2 manifest entries, in order of most to least recent: | |||
|
335 | id: d45ead487afec2588272fcec88a25413c0ec7dc8, size 225 bytes | |||
|
336 | id: b264454d7033405774b9f353b9b37a082c1a8fba, size 496 bytes | |||
|
337 | total cache data size 769 bytes, on-disk 769 bytes | |||
|
338 | $ hg debugmanifestfulltextcache -R share-source | |||
|
339 | cache contains 4 manifest entries, in order of most to least recent: | |||
|
340 | id: fffc37b38c401b1ab4f8b99da4b72325e31b985f, size 90 bytes | |||
|
341 | id: b264454d7033405774b9f353b9b37a082c1a8fba, size 496 bytes | |||
|
342 | id: c6e7b359cbbb5469e98f35acd73ac4757989c4d8, size 450 bytes | |||
|
343 | id: 8de636143b0acc5236cb47ca914bd482d82e6f35, size 405 bytes | |||
|
344 | total cache data size 1.50 KB, on-disk 1.50 KB | |||
|
345 | $ hg update -R share-source 7 | |||
|
346 | 6 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
347 | $ hg log --debug -r . -R share-source | grep 'manifest:' | |||
|
348 | manifest: 7:7d32499319983d90f97ca02a6c2057a1030bebbb | |||
|
349 | $ hg debugmanifestfulltextcache -R share-dest | |||
|
350 | cache contains 2 manifest entries, in order of most to least recent: | |||
|
351 | id: d45ead487afec2588272fcec88a25413c0ec7dc8, size 225 bytes | |||
|
352 | id: b264454d7033405774b9f353b9b37a082c1a8fba, size 496 bytes | |||
|
353 | total cache data size 769 bytes, on-disk 769 bytes | |||
|
354 | $ hg debugmanifestfulltextcache -R share-source | |||
|
355 | cache contains 4 manifest entries, in order of most to least recent: | |||
|
356 | id: 7d32499319983d90f97ca02a6c2057a1030bebbb, size 360 bytes | |||
|
357 | id: fffc37b38c401b1ab4f8b99da4b72325e31b985f, size 90 bytes | |||
|
358 | id: b264454d7033405774b9f353b9b37a082c1a8fba, size 496 bytes | |||
|
359 | id: c6e7b359cbbb5469e98f35acd73ac4757989c4d8, size 450 bytes | |||
|
360 | total cache data size 1.46 KB, on-disk 1.46 KB | |||
|
361 | $ hg update -R share-dest 8 | |||
|
362 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
363 | $ hg log --debug -r . -R share-dest | grep 'manifest:' | |||
|
364 | manifest: 8:8de636143b0acc5236cb47ca914bd482d82e6f35 | |||
|
365 | $ hg debugmanifestfulltextcache -R share-dest | |||
|
366 | cache contains 3 manifest entries, in order of most to least recent: | |||
|
367 | id: 8de636143b0acc5236cb47ca914bd482d82e6f35, size 405 bytes | |||
|
368 | id: d45ead487afec2588272fcec88a25413c0ec7dc8, size 225 bytes | |||
|
369 | id: b264454d7033405774b9f353b9b37a082c1a8fba, size 496 bytes | |||
|
370 | total cache data size 1.17 KB, on-disk 1.17 KB | |||
|
371 | $ hg debugmanifestfulltextcache -R share-source | |||
|
372 | cache contains 4 manifest entries, in order of most to least recent: | |||
|
373 | id: 7d32499319983d90f97ca02a6c2057a1030bebbb, size 360 bytes | |||
|
374 | id: fffc37b38c401b1ab4f8b99da4b72325e31b985f, size 90 bytes | |||
|
375 | id: b264454d7033405774b9f353b9b37a082c1a8fba, size 496 bytes | |||
|
376 | id: c6e7b359cbbb5469e98f35acd73ac4757989c4d8, size 450 bytes | |||
|
377 | total cache data size 1.46 KB, on-disk 1.46 KB | |||
|
378 |
General Comments 0
You need to be logged in to leave comments.
Login now