hgbook

annotate es/examples/mq.guards @ 350:74224b4f6928

this file was a symlink; this was intended to keep track of the file on any
change that might appear on the original version of the book. I removed it and
instead created a copy, because some of the modifications needed for the
translation (the traduction of a couple of commands defined there) would have
affected the english version. And we don't want that ;)
author jerojasro@localhost
date Sun Oct 19 23:53:39 2008 -0500 (2008-10-19)
parents
children
rev   line source
igor@333 1 #!/bin/bash
igor@333 2
igor@333 3 echo '[extensions]' >> $HGRC
igor@333 4 echo 'hgext.mq =' >> $HGRC
igor@333 5
igor@333 6 hg init a
igor@333 7 cd a
igor@333 8
igor@333 9 #$ name: init
igor@333 10
igor@333 11 hg qinit
igor@333 12 hg qnew hello.patch
igor@333 13 echo hello > hello
igor@333 14 hg add hello
igor@333 15 hg qrefresh
igor@333 16 hg qnew goodbye.patch
igor@333 17 echo goodbye > goodbye
igor@333 18 hg add goodbye
igor@333 19 hg qrefresh
igor@333 20
igor@333 21 #$ name: qguard
igor@333 22
igor@333 23 hg qguard
igor@333 24
igor@333 25 #$ name: qguard.pos
igor@333 26
igor@333 27 hg qguard +foo
igor@333 28 hg qguard
igor@333 29
igor@333 30 #$ name: qguard.neg
igor@333 31
igor@333 32 hg qguard hello.patch -quux
igor@333 33 hg qguard hello.patch
igor@333 34
igor@333 35 #$ name: series
igor@333 36
igor@333 37 cat .hg/patches/series
igor@333 38
igor@333 39 #$ name: qselect.foo
igor@333 40
igor@333 41 hg qpop -a
igor@333 42 hg qselect
igor@333 43 hg qselect foo
igor@333 44 hg qselect
igor@333 45
igor@333 46 #$ name: qselect.cat
igor@333 47
igor@333 48 cat .hg/patches/guards
igor@333 49
igor@333 50 #$ name: qselect.qpush
igor@333 51 hg qpush -a
igor@333 52
igor@333 53 #$ name: qselect.error
igor@333 54
igor@333 55 hg qselect +foo
igor@333 56
igor@333 57 #$ name: qselect.quux
igor@333 58
igor@333 59 hg qselect quux
igor@333 60 hg qpop -a
igor@333 61 hg qpush -a
igor@333 62
igor@333 63 #$ name: qselect.foobar
igor@333 64
igor@333 65 hg qselect foo bar
igor@333 66 hg qpop -a
igor@333 67 hg qpush -a