hgbook

view es/examples/mq.guards @ 399:2a1067c24be1

Merging javier changes
author Igor TAmara <igor@tamarapatino.org>
date Thu Nov 06 23:07:42 2008 -0500 (2008-11-06)
parents
children
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