transaction: tests we don't overwrite tracking to changed file on abort
spoiler: we do…
--- 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