tests/test-mq-guards
changeset 2829 05316bb57d01
parent 2821 2e4ace008c94
child 2844 582cbc4392cb
--- a/tests/test-mq-guards	Tue Aug 08 17:11:36 2006 -0700
+++ b/tests/test-mq-guards	Wed Aug 09 09:38:11 2006 -0700
@@ -59,4 +59,26 @@
 
 hg qpop -a
 hg qselect -n
+echo % should push all
 hg qpush -a
+
+hg qpop -a
+hg qguard a.patch +1 +2
+hg qselect 1
+echo % should push b.patch
+hg qpush
+hg qpop -a
+
+hg qselect 2
+hg qpush
+hg qpop -a
+
+hg qselect 1 2
+echo % should push a.patch
+hg qpush
+hg qpop -a
+
+hg qguard a.patch +1 +2 -3
+hg qselect 1 2 3
+echo % should push b.patch
+hg qpush