changeset 50172:b90899794ced stable

transaction: tests we don't overwrite updates on abort spoiler: we do… /o\
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 22 Feb 2023 18:09:12 +0100
parents d956ceed3289
children bf27727e6c78
files tests/test-transaction-wc-rollback-race.t
diffstat 1 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-transaction-wc-rollback-race.t	Wed Feb 22 18:07:34 2023 +0100
+++ b/tests/test-transaction-wc-rollback-race.t	Wed Feb 22 18:09:12 2023 +0100
@@ -188,3 +188,26 @@
   $ wait
   $ hg branch
   celeste
+
+updating working copy
+---------------------
+
+  $ hg st
+  $ hg log --rev . -T '{desc}\n'
+  babar_m
+  $ hg phase --public --rev 0 2> ../log.err &
+  $ $RUNTESTDIR/testlib/wait-on-file 5 $TESTTMP/transaction-waiting
+  $ hg update "parents(.)" --quiet
+  $ hg log --rev . -T '{desc}\n'
+  babar_l
+  $ hg st
+  $ touch $TESTTMP/transaction-continue
+  $ wait
+  $ hg log --rev . -T '{desc}\n'
+  babar_l (missing-correct-output !)
+  babar_m (known-bad-output !)
+  $ hg st
+  ! babar_m (known-bad-output !)
+
+  $ hg purge --no-confirm
+  $ hg up --quiet babar