Skip to content
Snippets Groups Projects
Commit d956ceed authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

transaction: tests we don't overwrite branch changes on abort

We actually do not! Great.

…Why are doing a backup of the `branch` files at transaction creation then‽
parent a9a13b16
No related branches found
No related tags found
2 merge requests!461dirstate-scoping [20] Merge the stable test,!459dirstate-scoping [19] add test showing the transaction is eating peoples changes
......@@ -155,3 +155,36 @@
$ hg status
R default_a (missing-correct-output !)
$ hg revert --all --quiet
Changing branch from default
----------------------------
$ hg branch
default
$ hg phase --public --rev 0 2> ../log.err &
$ $RUNTESTDIR/testlib/wait-on-file 5 $TESTTMP/transaction-waiting
$ hg branch celeste
marked working directory as branch celeste
$ hg branch
celeste
$ touch $TESTTMP/transaction-continue
$ wait
$ hg branch
celeste
Changing branch from another one
--------------------------------
$ hg up babar --quiet
$ hg branch
babar
$ hg phase --public --rev 0 2> ../log.err &
$ $RUNTESTDIR/testlib/wait-on-file 5 $TESTTMP/transaction-waiting
$ hg branch celeste
marked working directory as branch celeste
$ hg branch
celeste
$ touch $TESTTMP/transaction-continue
$ wait
$ hg branch
celeste
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment