Show More
@@ -467,3 +467,95 b' Check upgrading a large file repository' | |||||
467 | largefiles |
|
467 | largefiles | |
468 | revlogv1 |
|
468 | revlogv1 | |
469 | store |
|
469 | store | |
|
470 | ||||
|
471 | $ cd .. | |||
|
472 | ||||
|
473 | repository config is taken in account | |||
|
474 | ------------------------------------- | |||
|
475 | ||||
|
476 | $ cat << EOF >> $HGRCPATH | |||
|
477 | > [format] | |||
|
478 | > maxchainlen = 1 | |||
|
479 | > EOF | |||
|
480 | ||||
|
481 | $ hg init localconfig | |||
|
482 | $ cd localconfig | |||
|
483 | $ cat << EOF > file | |||
|
484 | > some content | |||
|
485 | > with some length | |||
|
486 | > to make sure we get a delta | |||
|
487 | > after changes | |||
|
488 | > very long | |||
|
489 | > very long | |||
|
490 | > very long | |||
|
491 | > very long | |||
|
492 | > very long | |||
|
493 | > very long | |||
|
494 | > very long | |||
|
495 | > very long | |||
|
496 | > very long | |||
|
497 | > very long | |||
|
498 | > very long | |||
|
499 | > EOF | |||
|
500 | $ hg -q commit -A -m A | |||
|
501 | $ echo "new line" >> file | |||
|
502 | $ hg -q commit -m B | |||
|
503 | $ echo "new line" >> file | |||
|
504 | $ hg -q commit -m C | |||
|
505 | ||||
|
506 | $ cat << EOF >> .hg/hgrc | |||
|
507 | > [format] | |||
|
508 | > maxchainlen = 9001 | |||
|
509 | > EOF | |||
|
510 | $ hg config format | |||
|
511 | format.maxchainlen=9001 | |||
|
512 | $ hg debugindex file | |||
|
513 | rev offset length delta linkrev nodeid p1 p2 | |||
|
514 | 0 0 77 -1 0 bcc1d3df78b2 000000000000 000000000000 | |||
|
515 | 1 77 21 0 1 af3e29f7a72e bcc1d3df78b2 000000000000 | |||
|
516 | 2 98 84 -1 2 8daf79c5522b af3e29f7a72e 000000000000 | |||
|
517 | ||||
|
518 | $ hg debugupgraderepo --run --optimize redeltaall | |||
|
519 | upgrade will perform the following actions: | |||
|
520 | ||||
|
521 | requirements | |||
|
522 | preserved: dotencode, fncache, generaldelta, revlogv1, store | |||
|
523 | ||||
|
524 | redeltaall | |||
|
525 | deltas within internal storage will be fully recomputed; this will likely drastically slow down execution time | |||
|
526 | ||||
|
527 | beginning upgrade... | |||
|
528 | repository locked and read-only | |||
|
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) | |||
|
531 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) | |||
|
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) | |||
|
534 | finished migrating 3 filelog revisions across 1 filelogs; change in size: 0 bytes | |||
|
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 | |||
|
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 | |||
|
539 | finished migrating 9 total revisions; total change in store size: 0 bytes | |||
|
540 | copying phaseroots | |||
|
541 | data fully migrated to temporary repository | |||
|
542 | marking source repository as being upgraded; clients will be unable to read from repository | |||
|
543 | starting in-place swap of repository data | |||
|
544 | replaced files will be backed up at $TESTTMP/localconfig/.hg/upgradebackup.* (glob) | |||
|
545 | replacing store... | |||
|
546 | store replacement complete; repository was inconsistent for 0.0s | |||
|
547 | finalizing requirements file and making repository readable again | |||
|
548 | removing temporary repository $TESTTMP/localconfig/.hg/upgrade.* (glob) | |||
|
549 | copy of old repository 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 | |||
|
551 | $ hg debugindex file | |||
|
552 | rev offset length delta linkrev nodeid p1 p2 | |||
|
553 | 0 0 77 -1 0 bcc1d3df78b2 000000000000 000000000000 | |||
|
554 | 1 77 21 0 1 af3e29f7a72e bcc1d3df78b2 000000000000 | |||
|
555 | 2 98 84 -1 2 8daf79c5522b af3e29f7a72e 000000000000 | |||
|
556 | $ cd .. | |||
|
557 | ||||
|
558 | $ cat << EOF >> $HGRCPATH | |||
|
559 | > [format] | |||
|
560 | > maxchainlen = 9001 | |||
|
561 | > EOF |
General Comments 0
You need to be logged in to leave comments.
Login now