hgbook

view en/examples/mq.guards @ 318:f3bef43b8ca1

Trim more obsolete SVN advantages
author Bryan O'Sullivan <bos@serpentine.com>
date Tue Aug 26 14:14:19 2008 -0700 (2008-08-26)
parents
children 5225ec140003
line source
1 #!/bin/bash
3 echo '[extensions]' >> $HGRC
4 echo 'hgext.mq =' >> $HGRC
6 hg init a
7 cd a
9 #$ name: init
11 hg qinit
12 hg qnew hello.patch
13 echo hello > hello
14 hg add hello
15 hg qrefresh
16 hg qnew goodbye.patch
17 echo goodbye > goodbye
18 hg add goodbye
19 hg qrefresh
21 #$ name: qguard
23 hg qguard
25 #$ name: qguard.pos
27 hg qguard +foo
28 hg qguard
30 #$ name: qguard.neg
32 hg qguard hello.patch -quux
33 hg qguard hello.patch
35 #$ name: series
37 cat .hg/patches/series
39 #$ name: qselect.foo
41 hg qpop -a
42 hg qselect
43 hg qselect foo
44 hg qselect
46 #$ name: qselect.cat
48 cat .hg/patches/guards
50 #$ name: qselect.qpush
51 hg qpush -a
53 #$ name: qselect.error
55 hg qselect +foo
57 #$ name: qselect.quux
59 hg qselect quux
60 hg qpop -a
61 hg qpush -a
63 #$ name: qselect.foobar
65 hg qselect foo bar
66 hg qpop -a
67 hg qpush -a