diff tests/test-mq-guards @ 2829:05316bb57d01

mq: make guards more strict, add tests
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Wed, 09 Aug 2006 09:38:11 -0700
parents 2e4ace008c94
children 582cbc4392cb
line wrap: on
line diff
--- 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