Show More
@@ -474,17 +474,16 b' An up to date nodemap should be availabl' | |||||
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= |
|
479 | > --config "hooks.pretxnclose=sh \"$RUNTESTDIR/testlib/wait-on-file\" 20 sync-repo-read sync-txn-pending" \ | |
481 |
> --config "hooks.tx |
|
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 |
$ |
|
484 | $ sh "$RUNTESTDIR/testlib/wait-on-file" 20 sync-txn-pending && \ | |
486 |
> |
|
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 | |
@@ -792,7 +791,9 b' truncate the file' | |||||
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=no |
|
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) |
General Comments 0
You need to be logged in to leave comments.
Login now