##// END OF EJS Templates
mq: use dirstateguard instead of dirstate.invalidate (qpush)...
mq: use dirstateguard instead of dirstate.invalidate (qpush) Before this patch, "mq.queue.apply()" uses "dirstate.invalidate()" as a kind of "restore .hg/dirstate to the original status" during afailure. But it just discards changes in memory, and doesn't actually restore ".hg/dirstate". Then, it can't work as expected, if "dirstate.write()" is executed while processing. This patch uses "dirstateguard" instead of "dirstate.invalidate()" to restore ".hg/dirstate" at failure even if "dirstate.write()" is executed before failure. This is a part of preparations to fix the issue that the recent (in memory) dirstate isn't visible to external processes (e.g. "precommit" hook).

File last commit:

r16913:f2719b38 default
r24996:58308dde default
Show More
test-issue1089.t
26 lines | 321 B | text/troff | Tads3Lexer
Matt Mackall
tests: fix a bunch of pointless #s in unified tests
r12328 http://mercurial.selenic.com/bts/issue1089
Adrian Buehlmann
tests: unify test-issue*
r12195
$ hg init
$ mkdir a
$ echo a > a/b
$ hg ci -Am m
adding a/b
$ hg rm a
Mads Kiilerich
tests: make (glob) on windows accept \ instead of /...
r15447 removing a/b (glob)
Adrian Buehlmann
tests: unify test-issue*
r12195 $ hg ci -m m a
$ mkdir a b
$ echo a > a/b
$ hg ci -Am m
adding a/b
$ hg rm a
Mads Kiilerich
tests: make (glob) on windows accept \ instead of /...
r15447 removing a/b (glob)
Adrian Buehlmann
tests: unify test-issue*
r12195 $ cd b
Relative delete:
$ hg ci -m m ../a
Mads Kiilerich
tests: add missing trailing 'cd ..'...
r16913 $ cd ..