Mercurial > evolve
changeset 4131:788798a9a159
pullbundle: add an extra test showing how cache are reusable
We issue a single final pull, most of its item are reusable.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 23 Sep 2018 23:46:49 +0200 |
parents | a1f6b8211016 |
children | afc933d32085 |
files | tests/test-pullbundle.t |
diffstat | 1 files changed, 103 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-pullbundle.t Sun Sep 23 00:08:02 2018 +0200 +++ b/tests/test-pullbundle.t Sun Sep 23 23:46:49 2018 +0200 @@ -16,6 +16,7 @@ $ hg init client $ hg init client2 $ hg init client3 + $ hg init client4 simple initial pull ------------------- @@ -2017,3 +2018,105 @@ 02-f864bc82f6a2f2ecb49b83722e0895f9d657b0dd-0000001234skip-0000000001size.hg 02-fb6c210a224903e81e5a8d2ee099cb0c9526ba8c-0000001512skip-0000000004size.hg [1] + +Single pull coming after various cache warming +---------------------------------------------- + + $ hg -R client4 pull --verbose server | grep -v 'add changeset' + pulling from server + requesting all changes + 1024 changesets found in caches + 512 changesets found + 256 changesets found in caches + 64 changesets found in caches + 8 changesets found in caches + 1 changesets found in caches + 4 changesets found in caches + 8 changesets found in caches + 16 changesets found in caches + 128 changesets found in caches + 64 changesets found in caches + 32 changesets found in caches + 8 changesets found in caches + 4 changesets found in caches + 2 changesets found in caches + uncompressed size of bundle content: + 94212 (changelog) + 4 (manifests) + adding changesets + adding manifests + adding file changes + added 1024 changesets with 0 changes to 0 files + adding changesets + adding manifests + adding file changes + added 512 changesets with 0 changes to 0 files + adding changesets + adding manifests + adding file changes + added 256 changesets with 0 changes to 0 files + adding changesets + adding manifests + adding file changes + added 64 changesets with 0 changes to 0 files + adding changesets + adding manifests + adding file changes + added 8 changesets with 0 changes to 0 files + adding changesets + adding manifests + adding file changes + added 1 changesets with 0 changes to 0 files (+1 heads) + adding changesets + adding manifests + adding file changes + added 4 changesets with 0 changes to 0 files + adding changesets + adding manifests + adding file changes + added 8 changesets with 0 changes to 0 files + adding changesets + adding manifests + adding file changes + added 16 changesets with 0 changes to 0 files + adding changesets + adding manifests + adding file changes + added 128 changesets with 0 changes to 0 files + adding changesets + adding manifests + adding file changes + added 64 changesets with 0 changes to 0 files + adding changesets + adding manifests + adding file changes + added 32 changesets with 0 changes to 0 files + adding changesets + adding manifests + adding file changes + added 8 changesets with 0 changes to 0 files + adding changesets + adding manifests + adding file changes + added 4 changesets with 0 changes to 0 files + adding changesets + adding manifests + adding file changes + added 2 changesets with 0 changes to 0 files + new changesets 1ea73414a91b:1dded5aafa0f + (run 'hg heads' to see heads, 'hg merge' to merge) + + $ mv newbundles oldbundles + $ ls -1 server/.hg/cache/pullbundles > newbundles + $ diff -u oldbundles newbundles + --- oldbundles * (glob) + +++ newbundles * (glob) + @@ -25,6 +25,7 @@ + 02-dba2fddbf3c28198659046674a512afd616a1519-0000001472skip-0000000032size.hg + 02-dc714c3a5d080165292ba99b097567d0b95e5756-0000001408skip-0000000064size.hg + 02-e469a7aa5cce57653b6b02ff46c80b2d94d62629-0000000899skip-0000000029size.hg + +02-e74670ea99533967c5d90da3ddbc0318cc1fd502-0000001024skip-0000000512size.hg + 02-e74670ea99533967c5d90da3ddbc0318cc1fd502-0000001280skip-0000000256size.hg + 02-e74670ea99533967c5d90da3ddbc0318cc1fd502-0000001528skip-0000000008size.hg + 02-ee2deecf044fa5583f66188c9177b0f13332adc2-0000001024skip-0000000128size.hg + [1]