hgbook

diff en/examples/mq.guards @ 104:32bf9a5f22c0

Refactor MQ chapter into three.
Start text on guards.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri Oct 20 16:56:20 2006 -0700 (2006-10-20)
parents
children 5225ec140003
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/en/examples/mq.guards	Fri Oct 20 16:56:20 2006 -0700
     1.3 @@ -0,0 +1,67 @@
     1.4 +#!/bin/bash
     1.5 +
     1.6 +echo '[extensions]' >> $HGRC
     1.7 +echo 'hgext.mq =' >> $HGRC
     1.8 +
     1.9 +hg init a
    1.10 +cd a
    1.11 +
    1.12 +#$ name: init
    1.13 +
    1.14 +hg qinit
    1.15 +hg qnew hello.patch
    1.16 +echo hello > hello
    1.17 +hg add hello
    1.18 +hg qrefresh
    1.19 +hg qnew goodbye.patch
    1.20 +echo goodbye > goodbye
    1.21 +hg add goodbye
    1.22 +hg qrefresh
    1.23 +
    1.24 +#$ name: qguard
    1.25 +
    1.26 +hg qguard
    1.27 +
    1.28 +#$ name: qguard.pos
    1.29 +
    1.30 +hg qguard +foo
    1.31 +hg qguard
    1.32 +
    1.33 +#$ name: qguard.neg
    1.34 +
    1.35 +hg qguard hello.patch -quux
    1.36 +hg qguard hello.patch
    1.37 +
    1.38 +#$ name: series
    1.39 +
    1.40 +cat .hg/patches/series
    1.41 +
    1.42 +#$ name: qselect.foo
    1.43 +
    1.44 +hg qpop -a
    1.45 +hg qselect
    1.46 +hg qselect foo
    1.47 +hg qselect
    1.48 +
    1.49 +#$ name: qselect.cat
    1.50 +
    1.51 +cat .hg/patches/guards
    1.52 +
    1.53 +#$ name: qselect.qpush
    1.54 +hg qpush -a
    1.55 +
    1.56 +#$ name: qselect.error
    1.57 +
    1.58 +hg qselect +foo
    1.59 +
    1.60 +#$ name: qselect.quux
    1.61 +
    1.62 +hg qselect quux
    1.63 +hg qpop -a
    1.64 +hg qpush -a
    1.65 +
    1.66 +#$ name: qselect.foobar
    1.67 +
    1.68 +hg qselect foo bar
    1.69 +hg qpop -a
    1.70 +hg qpush -a