transaction: tests we don't overwrite updates on abort stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 22 Feb 2023 18:09:12 +0100
branchstable
changeset 49664 b90899794ced
parent 49663 d956ceed3289
child 49665 bf27727e6c78
transaction: tests we don't overwrite updates on abort spoiler: we do… /o\
tests/test-transaction-wc-rollback-race.t
--- 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