Mercurial > hg
diff tests/test-mq-guards @ 4240:943f40b4da30
Tests for qapplied/qunapplied fixes (417c2068cb92 and ce6c364ebb2a)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 18 Mar 2007 19:41:28 +0100 |
parents | a9ee6c53af8d |
children | 7c59ade0f0d6 |
line wrap: on
line diff
--- a/tests/test-mq-guards Sun Mar 18 12:20:15 2007 +0100 +++ b/tests/test-mq-guards Sun Mar 18 19:41:28 2007 +0100 @@ -118,3 +118,28 @@ hg qguard d.patch +2 echo % new.patch, b.patch: Guarded. c.patch: Applied. d.patch: Guarded. hg qseries -v + +qappunappv() +( + for command in qapplied "qapplied -v" qunapplied "qunapplied -v"; do + echo % hg $command + hg $command + done +) + +hg qpop -a +hg qguard -l +qappunappv +hg qselect 1 +qappunappv +hg qpush -a +qappunappv +hg qselect 2 +qappunappv + +for patch in `hg qseries`; do + echo % hg qapplied $patch + hg qapplied $patch + echo % hg qunapplied $patch + hg qunapplied $patch +done