Mercurial > hg
comparison tests/test-persistent-nodemap.t @ 46526:67b5fafd3a46
upgrade: speed up when we have only nodemap to downgrade
Similar to what we do on upgrade, if we have only persistent-nodemap to
downgrade we will just delete the nodemap files and update repository
requirements instead of processing all the revlogs.
After downgrade, we are left with unrequired docket and transaction files which
seems fine but can work on deleting them if someone feels we should.
Differential Revision: https://phab.mercurial-scm.org/D9992
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 10 Feb 2021 17:08:34 +0530 |
parents | 636853347e14 |
children | fd55a9eb1507 |
comparison
equal
deleted
inserted
replaced
46525:636853347e14 | 46526:67b5fafd3a46 |
---|---|
579 persistent-nodemap: yes no no | 579 persistent-nodemap: yes no no |
580 copies-sdc: no no no | 580 copies-sdc: no no no |
581 plain-cl-delta: yes yes yes | 581 plain-cl-delta: yes yes yes |
582 compression: zlib zlib zlib | 582 compression: zlib zlib zlib |
583 compression-level: default default default | 583 compression-level: default default default |
584 $ hg debugupgraderepo --run --no-backup --quiet | 584 $ hg debugupgraderepo --run --no-backup |
585 upgrade will perform the following actions: | 585 upgrade will perform the following actions: |
586 | 586 |
587 requirements | 587 requirements |
588 preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store | 588 preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
589 removed: persistent-nodemap | 589 removed: persistent-nodemap |
591 processed revlogs: | 591 processed revlogs: |
592 - all-filelogs | 592 - all-filelogs |
593 - changelog | 593 - changelog |
594 - manifest | 594 - manifest |
595 | 595 |
596 beginning upgrade... | |
597 repository locked and read-only | |
598 creating temporary repository to stage upgraded data: $TESTTMP/test-repo/.hg/upgrade.* (glob) | |
599 (it is safe to interrupt this process any time before data migration completes) | |
600 downgrading repository to not use persistent nodemap feature | |
601 removing temporary repository $TESTTMP/test-repo/.hg/upgrade.* (glob) | |
596 $ ls -1 .hg/store/ | egrep '00(changelog|manifest)(\.n|-.*\.nd)' | 602 $ ls -1 .hg/store/ | egrep '00(changelog|manifest)(\.n|-.*\.nd)' |
597 [1] | 603 00changelog-*.nd (glob) |
604 00manifest-*.nd (glob) | |
605 undo.backup.00changelog.n | |
606 undo.backup.00manifest.n | |
598 $ hg debugnodemap --metadata | 607 $ hg debugnodemap --metadata |
599 | 608 |
600 | 609 |
601 upgrading | 610 upgrading |
602 | 611 |
641 $ ls -1 .hg/store/ | egrep '00(changelog|manifest)(\.n|-.*\.nd)' | 650 $ ls -1 .hg/store/ | egrep '00(changelog|manifest)(\.n|-.*\.nd)' |
642 00changelog-*.nd (glob) | 651 00changelog-*.nd (glob) |
643 00changelog.n | 652 00changelog.n |
644 00manifest-*.nd (glob) | 653 00manifest-*.nd (glob) |
645 00manifest.n | 654 00manifest.n |
655 undo.backup.00changelog.n | |
656 undo.backup.00manifest.n | |
646 | 657 |
647 $ hg debugnodemap --metadata | 658 $ hg debugnodemap --metadata |
648 uid: * (glob) | 659 uid: * (glob) |
649 tip-rev: 5005 | 660 tip-rev: 5005 |
650 tip-node: 90d5d3ba2fc47db50f712570487cb261a68c8ffe | 661 tip-node: 90d5d3ba2fc47db50f712570487cb261a68c8ffe |