comparison tests/test-upgrade-repo.t @ 35342:75520786ad2f

upgrade: use the repository 'ui' as the base for the new repository The `repo.baseui` contains all the configuration but the one specific to the repository (so it can be used when dealing with local peer and sub- repository). However, we need the repository config to be taken into account when doing the upgrade. Otherwise, the upgrade related config that exists in the repository config won't be taken into account when performing the update. A buggy and surprising behavior. We had to work around protection set around `repo.ui.copy` since we are an uncommon case.
author Boris Feld <boris.feld@octobus.net>
date Thu, 07 Dec 2017 18:55:35 +0100
parents cb7a0ae053c6
children 6226668a7169
comparison
equal deleted inserted replaced
35341:cb7a0ae053c6 35342:75520786ad2f
529 creating temporary repository to stage migrated data: $TESTTMP/localconfig/.hg/upgrade.* (glob) 529 creating temporary repository to stage migrated data: $TESTTMP/localconfig/.hg/upgrade.* (glob)
530 (it is safe to interrupt this process any time before data migration completes) 530 (it is safe to interrupt this process any time before data migration completes)
531 migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) 531 migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog)
532 migrating 497 bytes in store; 882 bytes tracked data 532 migrating 497 bytes in store; 882 bytes tracked data
533 migrating 1 filelogs containing 3 revisions (182 bytes in store; 573 bytes tracked data) 533 migrating 1 filelogs containing 3 revisions (182 bytes in store; 573 bytes tracked data)
534 finished migrating 3 filelog revisions across 1 filelogs; change in size: 0 bytes 534 finished migrating 3 filelog revisions across 1 filelogs; change in size: -63 bytes
535 migrating 1 manifests containing 3 revisions (141 bytes in store; 138 bytes tracked data) 535 migrating 1 manifests containing 3 revisions (141 bytes in store; 138 bytes tracked data)
536 finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes 536 finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes
537 migrating changelog containing 3 revisions (174 bytes in store; 171 bytes tracked data) 537 migrating changelog containing 3 revisions (174 bytes in store; 171 bytes tracked data)
538 finished migrating 3 changelog revisions; change in size: 0 bytes 538 finished migrating 3 changelog revisions; change in size: 0 bytes
539 finished migrating 9 total revisions; total change in store size: 0 bytes 539 finished migrating 9 total revisions; total change in store size: -63 bytes
540 copying phaseroots 540 copying phaseroots
541 data fully migrated to temporary repository 541 data fully migrated to temporary repository
542 marking source repository as being upgraded; clients will be unable to read from repository 542 marking source repository as being upgraded; clients will be unable to read from repository
543 starting in-place swap of repository data 543 starting in-place swap of repository data
544 replaced files will be backed up at $TESTTMP/localconfig/.hg/upgradebackup.* (glob) 544 replaced files will be backed up at $TESTTMP/localconfig/.hg/upgradebackup.* (glob)
550 the old repository will not be deleted; remove it to free up disk space once the upgraded repository is verified 550 the old repository will not be deleted; remove it to free up disk space once the upgraded repository is verified
551 $ hg debugindex file 551 $ hg debugindex file
552 rev offset length delta linkrev nodeid p1 p2 552 rev offset length delta linkrev nodeid p1 p2
553 0 0 77 -1 0 bcc1d3df78b2 000000000000 000000000000 553 0 0 77 -1 0 bcc1d3df78b2 000000000000 000000000000
554 1 77 21 0 1 af3e29f7a72e bcc1d3df78b2 000000000000 554 1 77 21 0 1 af3e29f7a72e bcc1d3df78b2 000000000000
555 2 98 84 -1 2 8daf79c5522b af3e29f7a72e 000000000000 555 2 98 21 1 2 8daf79c5522b af3e29f7a72e 000000000000
556 $ cd .. 556 $ cd ..
557 557
558 $ cat << EOF >> $HGRCPATH 558 $ cat << EOF >> $HGRCPATH
559 > [format] 559 > [format]
560 > maxchainlen = 9001 560 > maxchainlen = 9001