changeset 50170:a9a13b160db9 stable

transaction: tests we don't overwrite tracking to changed file on abort spoiler: we do…
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 22 Feb 2023 18:05:36 +0100
parents 34ab5c7b7f98
children d956ceed3289
files tests/test-transaction-wc-rollback-race.t
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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