hgbook
annotate en/examples/mq.tutorial @ 56:b8539d91c84d
Begining of concepts chapter
author | Josef "Jeff" Sipek <jeffpc@josefsipek.net> |
---|---|
date | Mon Jul 24 23:57:52 2006 -0400 (2006-07-24) |
parents | a25335b56825 |
children | 5cee64874312 |
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@27 | 58 |
bos@27 | 59 #$ name: qpush-a |
bos@27 | 60 |
bos@27 | 61 hg qpush -a |
bos@8 | 62 cat file1 |
bos@27 | 63 |
bos@27 | 64 #$ name: add |
bos@27 | 65 |
bos@27 | 66 echo 'file 3, line 1' >> file3 |
bos@27 | 67 hg qnew add-file3.patch |
bos@27 | 68 hg qnew -f add-file3.patch |