changeset 4337:23068518deca

mq: test qtop with holes in the patch sequence.
author Patrick Mezard <pmezard@gmail.com>
date Thu, 12 Apr 2007 22:41:50 +0200
parents 66a3fe30f9fc
children 7ae02bce8de2
files tests/test-mq-guards tests/test-mq-guards.out
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-mq-guards
+++ b/tests/test-mq-guards
@@ -76,6 +76,10 @@ hg qpop -a
 hg qselect 2
 echo % should push b.patch
 hg qpush
+hg qpush -a
+# Used to be an issue with holes in the patch sequence
+# So, put one hole on the base and ask for topmost patch.
+hg qtop
 hg qpop -a
 
 hg qselect 1 2
--- a/tests/test-mq-guards.out
+++ b/tests/test-mq-guards.out
@@ -46,6 +46,9 @@ Patch queue now empty
 % should push b.patch
 applying b.patch
 Now at: b.patch
+applying c.patch
+Now at: c.patch
+c.patch
 Patch queue now empty
 number of unguarded, unapplied patches has changed from 2 to 3
 % should push a.patch, b.patch