Mercurial > hg
diff tests/test-mq @ 9364:c7c2dd7524dd
mq: add options to qapplied/qunapplied to act like qprev/qnext
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 19 Aug 2009 12:50:46 +0200 |
parents | f528d1a93491 |
children | b8dc3eba4f9d |
line wrap: on
line diff
--- a/tests/test-mq Wed Aug 19 12:47:04 2009 +0200 +++ b/tests/test-mq Wed Aug 19 12:50:46 2009 +0200 @@ -155,18 +155,13 @@ echo % qtop hg qtop -echo % qprev -hg qprev - -echo % qnext -hg qnext +echo % prev +hg qapp -1 -echo % pop, qnext, qprev, qapplied +echo % next +hg qunapp -1 + hg qpop -hg qnext -hg qprev -hg qapplied - echo % commit should fail hg commit @@ -197,6 +192,42 @@ hg qpop test2.patch-2 hg qpush test1b.patch+1 +echo % pop, qapplied, qunapplied +hg qseries -v +echo % qapplied -1 test.patch +hg qapplied -1 test.patch +echo % qapplied -1 test1b.patch +hg qapplied -1 test1b.patch +echo % qapplied -1 test2.patch +hg qapplied -1 test2.patch +echo % qapplied -1 +hg qapplied -1 +echo % qapplied +hg qapplied +echo % qapplied test1b.patch +hg qapplied test1b.patch +echo % qunapplied -1 +hg qunapplied -1 +echo % qunapplied +hg qunapplied +echo % popping +hg qpop +echo % qunapplied -1 +hg qunapplied -1 +echo % qunapplied +hg qunapplied +echo % qunapplied test2.patch +hg qunapplied test2.patch +echo % qunapplied -1 test2.patch +hg qunapplied -1 test2.patch +echo % popping -a +hg qpop -a +echo % qapplied +hg qapplied +echo % qapplied -1 +hg qapplied -1 +hg qpush + echo % push should succeed hg qpop -a hg push ../../k