hgbook
annotate en/examples/mq.guards @ 706:5225ec140003
Fix broken qguard example
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Thu May 14 21:06:12 2009 -0700 (2009-05-14) |
parents | 32bf9a5f22c0 |
children |
rev | line source |
---|---|
bos@104 | 1 #!/bin/bash |
bos@104 | 2 |
bos@104 | 3 echo '[extensions]' >> $HGRC |
bos@104 | 4 echo 'hgext.mq =' >> $HGRC |
bos@104 | 5 |
bos@104 | 6 hg init a |
bos@104 | 7 cd a |
bos@104 | 8 |
bos@104 | 9 #$ name: init |
bos@104 | 10 |
bos@104 | 11 hg qinit |
bos@104 | 12 hg qnew hello.patch |
bos@104 | 13 echo hello > hello |
bos@104 | 14 hg add hello |
bos@104 | 15 hg qrefresh |
bos@104 | 16 hg qnew goodbye.patch |
bos@104 | 17 echo goodbye > goodbye |
bos@104 | 18 hg add goodbye |
bos@104 | 19 hg qrefresh |
bos@104 | 20 |
bos@104 | 21 #$ name: qguard |
bos@104 | 22 |
bos@104 | 23 hg qguard |
bos@104 | 24 |
bos@104 | 25 #$ name: qguard.pos |
bos@104 | 26 |
bos@104 | 27 hg qguard +foo |
bos@104 | 28 hg qguard |
bos@104 | 29 |
bos@104 | 30 #$ name: qguard.neg |
bos@104 | 31 |
bos@706 | 32 hg qguard -- hello.patch -quux |
bos@104 | 33 hg qguard hello.patch |
bos@104 | 34 |
bos@104 | 35 #$ name: series |
bos@104 | 36 |
bos@104 | 37 cat .hg/patches/series |
bos@104 | 38 |
bos@104 | 39 #$ name: qselect.foo |
bos@104 | 40 |
bos@104 | 41 hg qpop -a |
bos@104 | 42 hg qselect |
bos@104 | 43 hg qselect foo |
bos@104 | 44 hg qselect |
bos@104 | 45 |
bos@104 | 46 #$ name: qselect.cat |
bos@104 | 47 |
bos@104 | 48 cat .hg/patches/guards |
bos@104 | 49 |
bos@104 | 50 #$ name: qselect.qpush |
bos@104 | 51 hg qpush -a |
bos@104 | 52 |
bos@104 | 53 #$ name: qselect.error |
bos@104 | 54 |
bos@104 | 55 hg qselect +foo |
bos@104 | 56 |
bos@104 | 57 #$ name: qselect.quux |
bos@104 | 58 |
bos@104 | 59 hg qselect quux |
bos@104 | 60 hg qpop -a |
bos@104 | 61 hg qpush -a |
bos@104 | 62 |
bos@104 | 63 #$ name: qselect.foobar |
bos@104 | 64 |
bos@104 | 65 hg qselect foo bar |
bos@104 | 66 hg qpop -a |
bos@104 | 67 hg qpush -a |