comparison tests/test-clonebundles.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 72feaeb510b3
children 7015b0232c5e
comparison
equal deleted inserted replaced
46313:4cde46f62ebf 46314:95a615dd77bf
595 checking for updated bookmarks 595 checking for updated bookmarks
596 updating the branch cache 596 updating the branch cache
597 added 2 changesets with 2 changes to 2 files 597 added 2 changesets with 2 changes to 2 files
598 new changesets 53245c60e682:aaff8d2ffbbf 598 new changesets 53245c60e682:aaff8d2ffbbf
599 calling hook changegroup.lfiles: hgext.largefiles.reposetup.checkrequireslfiles 599 calling hook changegroup.lfiles: hgext.largefiles.reposetup.checkrequireslfiles
600 updating the branch cache
600 (sent 4 HTTP requests and * bytes; received * bytes in responses) (glob) 601 (sent 4 HTTP requests and * bytes; received * bytes in responses) (glob)
601 602
602 $ hg clone -U --debug --config ui.available-memory=32MB http://localhost:$HGPORT gzip-too-large2 603 $ hg clone -U --debug --config ui.available-memory=32MB http://localhost:$HGPORT gzip-too-large2
603 using http://localhost:$HGPORT/ 604 using http://localhost:$HGPORT/
604 sending capabilities command 605 sending capabilities command
632 bundle2-input-part: total payload size 24 633 bundle2-input-part: total payload size 24
633 bundle2-input-bundle: 2 parts total 634 bundle2-input-bundle: 2 parts total
634 checking for updated bookmarks 635 checking for updated bookmarks
635 2 local changesets published 636 2 local changesets published
636 calling hook changegroup.lfiles: hgext.largefiles.reposetup.checkrequireslfiles 637 calling hook changegroup.lfiles: hgext.largefiles.reposetup.checkrequireslfiles
638 updating the branch cache
637 (sent 4 HTTP requests and * bytes; received * bytes in responses) (glob) 639 (sent 4 HTTP requests and * bytes; received * bytes in responses) (glob)
638 $ killdaemons.py 640 $ killdaemons.py