[PATCH 1 of 2] mq: test qtop with holes in the patch sequence
Patrick Mezard
pmezard at gmail.com
Thu Apr 12 20:48:49 UTC 2007
# HG changeset patch
# User Patrick Mezard <pmezard at gmail.com>
# Date 1176410510 -7200
# Node ID a6ecb9d1ae8d0e697c9171706ccb004dc1027b61
# Parent 35ad84669ca57b75ce3c567cffe0bd8fd702dfa1
mq: test qtop with holes in the patch sequence.
diff -r 35ad84669ca5 -r a6ecb9d1ae8d tests/test-mq-guards
--- a/tests/test-mq-guards Tue Apr 10 10:34:43 2007 -0700
+++ b/tests/test-mq-guards Thu Apr 12 22:41:50 2007 +0200
@@ -76,6 +76,10 @@ hg qselect 2
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
diff -r 35ad84669ca5 -r a6ecb9d1ae8d tests/test-mq-guards.out
--- a/tests/test-mq-guards.out Tue Apr 10 10:34:43 2007 -0700
+++ b/tests/test-mq-guards.out Thu Apr 12 22:41:50 2007 +0200
@@ -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
More information about the Mercurial-devel
mailing list