diff tests/test-mq-guards @ 2818: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
+++ b/tests/test-mq-guards
@@ -59,4 +59,26 @@ hg qpush -a
 
 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