Mercurial > public > mercurial-scm > hg
diff tests/test-mq-qpush-fail.t @ 16633:b2ca2f40c9c1 stable
mq: backup local changes in qpop --force (issue3433)
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Fri, 11 May 2012 16:17:02 +0200 |
parents | 00256f689f9c |
children | 435375cc0ca0 |
line wrap: on
line diff
--- a/tests/test-mq-qpush-fail.t Fri May 11 16:08:49 2012 +0200 +++ b/tests/test-mq-qpush-fail.t Fri May 11 16:17:02 2012 +0200 @@ -150,3 +150,41 @@ abort: cannot push to a previous patch: a [255] +test qpop --force and backup files + + $ hg qpop -a + popping b + patch queue now empty + $ hg qq --create force + $ echo a > a + $ echo b > b + $ echo c > c + $ hg ci -Am add a b c + $ echo a >> a + $ hg rm b + $ hg rm c + $ hg qnew p1 + $ echo a >> a + $ echo bb > b + $ hg add b + $ echo cc > c + $ hg add c + $ hg qpop --force --verbose + saving current version of a as a.orig + saving current version of b as b.orig + saving current version of c as c.orig + popping p1 + patch queue now empty + $ hg st + ? a.orig + ? b.orig + ? c.orig + ? untracked-file + $ cat a.orig + a + a + a + $ cat b.orig + bb + $ cat c.orig + cc