transaction: tests we don't overwrite tracking to changed file on abort stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 22 Feb 2023 18:05:36 +0100
branchstable
changeset 50170 a9a13b160db9
parent 50169 34ab5c7b7f98
child 50171 d956ceed3289
transaction: tests we don't overwrite tracking to changed file on abort spoiler: we do…
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