472 data-unused: 0.158% (rust !) |
472 data-unused: 0.158% (rust !) |
473 data-unused: 0.000% (no-pure no-rust !) |
473 data-unused: 0.000% (no-pure no-rust !) |
474 |
474 |
475 Another process does not see the pending nodemap content during run. |
475 Another process does not see the pending nodemap content during run. |
476 |
476 |
477 $ PATH=$RUNTESTDIR/testlib/:$PATH |
|
478 $ echo qpoasp > a |
477 $ echo qpoasp > a |
479 $ hg ci -m a2 \ |
478 $ hg ci -m a2 \ |
480 > --config "hooks.pretxnclose=wait-on-file 20 sync-repo-read sync-txn-pending" \ |
479 > --config "hooks.pretxnclose=sh \"$RUNTESTDIR/testlib/wait-on-file\" 20 sync-repo-read sync-txn-pending" \ |
481 > --config "hooks.txnclose=touch sync-txn-close" > output.txt 2>&1 & |
480 > --config "hooks.txnclose=touch sync-txn-close" > output.txt 2>&1 & |
482 |
481 |
483 (read the repository while the commit transaction is pending) |
482 (read the repository while the commit transaction is pending) |
484 |
483 |
485 $ wait-on-file 20 sync-txn-pending && \ |
484 $ sh "$RUNTESTDIR/testlib/wait-on-file" 20 sync-txn-pending && \ |
486 > hg debugnodemap --metadata && \ |
485 > hg debugnodemap --metadata && \ |
487 > wait-on-file 20 sync-txn-close sync-repo-read |
486 > sh "$RUNTESTDIR/testlib/wait-on-file" 20 sync-txn-close sync-repo-read |
488 uid: ???????????????? (glob) |
487 uid: ???????????????? (glob) |
489 tip-rev: 5004 |
488 tip-rev: 5004 |
490 tip-node: 2f5fb1c06a16834c5679d672e90da7c5f3b1a984 |
489 tip-node: 2f5fb1c06a16834c5679d672e90da7c5f3b1a984 |
491 data-length: 121280 (pure !) |
490 data-length: 121280 (pure !) |
492 data-length: 121280 (rust !) |
491 data-length: 121280 (rust !) |
790 truncate the file |
789 truncate the file |
791 |
790 |
792 $ datafilepath=`ls corruption-test-repo/.hg/store/00changelog*.nd` |
791 $ datafilepath=`ls corruption-test-repo/.hg/store/00changelog*.nd` |
793 $ f -s $datafilepath |
792 $ f -s $datafilepath |
794 corruption-test-repo/.hg/store/00changelog-*.nd: size=121088 (glob) |
793 corruption-test-repo/.hg/store/00changelog-*.nd: size=121088 (glob) |
795 $ dd if=$datafilepath bs=1000 count=10 of=$datafilepath-tmp status=none |
794 $ dd if=$datafilepath bs=1000 count=10 of=$datafilepath-tmp status=noxfer |
|
795 10+0 records in |
|
796 10+0 records out |
796 $ mv $datafilepath-tmp $datafilepath |
797 $ mv $datafilepath-tmp $datafilepath |
797 $ f -s $datafilepath |
798 $ f -s $datafilepath |
798 corruption-test-repo/.hg/store/00changelog-*.nd: size=10000 (glob) |
799 corruption-test-repo/.hg/store/00changelog-*.nd: size=10000 (glob) |
799 |
800 |
800 Check that Mercurial reaction to this event |
801 Check that Mercurial reaction to this event |