# HG changeset patch # User Pierre-Yves David # Date 1677085536 -3600 # Node ID a9a13b160db9f4ca76007efb20d660fe4b8d4a9a # Parent 34ab5c7b7f983ac6d50d252241790590cd824a6c transaction: tests we don't overwrite tracking to changed file on abort spoiler: we do… diff -r 34ab5c7b7f98 -r a9a13b160db9 tests/test-transaction-wc-rollback-race.t --- a/tests/test-transaction-wc-rollback-race.t Wed Feb 22 18:03:18 2023 +0100 +++ b/tests/test-transaction-wc-rollback-race.t Wed Feb 22 18:05:36 2023 +0100 @@ -137,3 +137,21 @@ transaction abort! rollback completed abort: pretxnclose.test hook exited with status 1 + +Actual testing +============== + +Changing tracked file +--------------------- + + $ hg status + $ hg phase --public --rev 0 2> ../log.err & + $ $RUNTESTDIR/testlib/wait-on-file 5 $TESTTMP/transaction-waiting + $ hg forget default_a + $ hg status + R default_a + $ touch $TESTTMP/transaction-continue + $ wait + $ hg status + R default_a (missing-correct-output !) + $ hg revert --all --quiet