hgbook
annotate en/examples/mq.tutorial @ 10:d450d67ecc82
Add simple graphic for MQ stack.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed Jun 28 20:29:21 2006 -0700 (2006-06-28) |
parents | 339e75288632 |
children | 535e87792eb1 |
rev | line source |
---|---|
bos@7 | 1 echo '[extensions]' >> $HGRC |
bos@7 | 2 echo 'hgext.mq =' >> $HGRC |
bos@7 | 3 |
bos@7 | 4 #$ name: qinit |
bos@7 | 5 |
bos@8 | 6 hg init mq-sandbox |
bos@7 | 7 cd mq-sandbox |
bos@8 | 8 echo 'line 1' > file1 |
bos@8 | 9 echo 'another line 1' > file2 |
bos@8 | 10 hg add file1 file2 |
bos@8 | 11 hg commit -m'first change' |
bos@7 | 12 |
bos@7 | 13 hg qinit |
bos@7 | 14 |
bos@7 | 15 #$ name: qnew |
bos@7 | 16 |
bos@7 | 17 hg tip |
bos@7 | 18 hg qnew first.patch |
bos@8 | 19 hg tip |
bos@7 | 20 ls .hg/patches |
bos@7 | 21 |
bos@8 | 22 #$ name: qrefresh |
bos@8 | 23 |
bos@8 | 24 echo 'line 2' >> file1 |
bos@8 | 25 hg diff |
bos@8 | 26 hg qrefresh |
bos@8 | 27 hg diff |
bos@8 | 28 hg tip --style=compact --patch |
bos@8 | 29 |
bos@8 | 30 #$ name: qrefresh2 |
bos@8 | 31 |
bos@8 | 32 echo 'line 3' >> file1 |
bos@8 | 33 hg status |
bos@8 | 34 hg qrefresh |
bos@8 | 35 hg tip --style=compact --patch |
bos@8 | 36 |
bos@8 | 37 #$ name: qnew2 |
bos@8 | 38 |
bos@8 | 39 hg qnew second.patch |
bos@8 | 40 hg log --style=compact --limit=2 |
bos@8 | 41 echo 'line 4' >> file1 |
bos@8 | 42 hg qrefresh |
bos@8 | 43 hg tip --style=compact --patch |
bos@8 | 44 hg annotate file1 |
bos@8 | 45 |
bos@8 | 46 #$ name: qseries |
bos@8 | 47 |
bos@8 | 48 hg qseries |
bos@8 | 49 hg qapplied |
bos@8 | 50 |
bos@8 | 51 #$ name: qpop |
bos@8 | 52 |
bos@8 | 53 hg qapplied |
bos@8 | 54 hg qpop |
bos@8 | 55 hg qseries |
bos@8 | 56 hg qapplied |
bos@8 | 57 cat file1 |
bos@8 | 58 hg qpush |
bos@8 | 59 cat file1 |