Mercurial > hg > mercurial-crew-with-dirclash
diff tests/test-mq-guards @ 2838:851b07ec450c
mq: apply patch is any posative guard matches
this is like guards command from quilt package.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Thu, 10 Aug 2006 17:18:55 -0700 |
parents | 582cbc4392cb |
children | 61fcd9fac434 |
line wrap: on
line diff
--- a/tests/test-mq-guards +++ b/tests/test-mq-guards @@ -63,25 +63,39 @@ echo % should push all hg qpush -a hg qpop -a -hg qguard a.patch +1 +2 +hg qguard a.patch +1 +hg qguard b.patch +2 hg qselect 1 +echo % should push a.patch, not b.patch +hg qpush +hg qpush +hg qpop -a + +hg qselect 2 echo % should push b.patch hg qpush hg qpop -a -hg qselect 2 +hg qselect 1 2 +echo % should push a.patch, b.patch 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 % list patches and guards +hg qguard -l +echo % list series +hg qseries -v +echo % list guards +hg qselect echo % should push b.patch hg qpush hg qpush -a hg qselect -n --reapply +echo % guards in series file: +1 +2 -3 +hg qselect -s +echo % should show c.patch +hg qapplied