Mercurial > hg-stable
comparison tests/test-persistent-nodemap.t @ 47888:c094e829e848 stable
changelog: also monitor `00changelog.n` when applicable (issue6554)
This let the locarepo's file cache detect outdated nodemap docket and reload the
changelog after `localrepo.invalidate` when applicable.
Differential Revision: https://phab.mercurial-scm.org/D11482
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 21 Sep 2021 18:03:37 +0200 |
parents | 52018f8ef020 |
children | aa88fb60ecb4 |
comparison
equal
deleted
inserted
replaced
47887:52018f8ef020 | 47888:c094e829e848 |
---|---|
746 nodemap-race: right side ready to wait for the lock | 746 nodemap-race: right side ready to wait for the lock |
747 nodemap-race: right side locked and ready to commit | 747 nodemap-race: right side locked and ready to commit |
748 docket-details: | 748 docket-details: |
749 uid: 43c37dde | 749 uid: 43c37dde |
750 actual-tip: 5006 | 750 actual-tip: 5006 |
751 tip-rev: 5005 | 751 tip-rev: 5006 |
752 data-length: 121088 | 752 data-length: 121280 |
753 right ready to write, waiting for reader | 753 right ready to write, waiting for reader |
754 right proceeding with writing its changelog index and nodemap | 754 right proceeding with writing its changelog index and nodemap |
755 finalized changelog write | 755 finalized changelog write |
756 persisting changelog nodemap | 756 persisting changelog nodemap |
757 new data start at 121088 | 757 new data start at 121280 |
758 persisted changelog nodemap | 758 persisted changelog nodemap |
759 docket-details: | 759 docket-details: |
760 uid: 43c37dde | 760 uid: 43c37dde |
761 actual-tip: 5007 | 761 actual-tip: 5007 |
762 tip-rev: 5007 | 762 tip-rev: 5007 |
763 data-length: 121472 | 763 data-length: 121536 |
764 $ sh "$RUNTESTDIR"/testlib/wait-on-file 10 sync-files/reader-done | 764 $ sh "$RUNTESTDIR"/testlib/wait-on-file 10 sync-files/reader-done |
765 $ cat outputs/reader.txt | 765 $ cat outputs/reader.txt |
766 reader: reading changelog | 766 reader: reading changelog |
767 reader ready to read the changelog, waiting for right | 767 reader ready to read the changelog, waiting for right |
768 reader: nodemap docket read | 768 reader: nodemap docket read |
769 record-data-length: 121280 | 769 record-data-length: 121280 |
770 actual-data-length: 121280 | 770 actual-data-length: 121280 |
771 file-actual-length: 121472 | 771 file-actual-length: 121536 |
772 reader: changelog read | 772 reader: changelog read |
773 docket-details: | 773 docket-details: |
774 uid: 43c37dde | 774 uid: 43c37dde |
775 actual-tip: 5006 | 775 actual-tip: 5006 |
776 tip-rev: 5006 | 776 tip-rev: 5006 |
777 data-length: 121280 | 777 data-length: 121280 |
778 tip-rev: 5006 | 778 tip-rev: 5006 |
779 tip-node: 492901161367 | 779 tip-node: 492901161367 |
780 node-rev: 5006 | 780 node-rev: 5006 |
781 error while checking revision: 18 (known-bad-output !) | |
782 Inconsistency: Revision 5007 found in nodemap is not in revlog indexi (known-bad-output !) | |
783 | 781 |
784 $ hg -R ./race-repo log -G -r 'head()' | 782 $ hg -R ./race-repo log -G -r 'head()' |
785 o changeset: 5007:ac4a2abde241 | 783 o changeset: 5007:ac4a2abde241 |
786 | tag: tip | 784 | tag: tip |
787 ~ parent: 5001:16395c3cf7e2 | 785 ~ parent: 5001:16395c3cf7e2 |