hgbook

annotate es/examples/mq.tutorial @ 644:3b864df20e3b

Update Chinese translation
author Dongsheng Song <dongsheng.song@gmail.com>
date Wed Mar 18 18:13:05 2009 +0800 (2009-03-18)
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 #$ name: qinit
igor@333 7
igor@333 8 hg init mq-sandbox
igor@333 9 cd mq-sandbox
igor@333 10 echo 'line 1' > file1
igor@333 11 echo 'another line 1' > file2
igor@333 12 hg add file1 file2
igor@333 13 hg commit -m'first change'
igor@333 14
igor@333 15 hg qinit
igor@333 16
igor@333 17 #$ name: qnew
igor@333 18
igor@333 19 hg tip
igor@333 20 hg qnew first.patch
igor@333 21 hg tip
igor@333 22 ls .hg/patches
igor@333 23
igor@333 24 #$ name: qrefresh
igor@333 25 #$ ignore: \s+200[78]-.*
igor@333 26
igor@333 27 echo 'line 2' >> file1
igor@333 28 hg diff
igor@333 29 hg qrefresh
igor@333 30 hg diff
igor@333 31 hg tip --style=compact --patch
igor@333 32
igor@333 33 #$ name: qrefresh2
igor@333 34
igor@333 35 echo 'line 3' >> file1
igor@333 36 hg status
igor@333 37 hg qrefresh
igor@333 38 hg tip --style=compact --patch
igor@333 39
igor@333 40 #$ name: qnew2
igor@333 41
igor@333 42 hg qnew second.patch
igor@333 43 hg log --style=compact --limit=2
igor@333 44 echo 'line 4' >> file1
igor@333 45 hg qrefresh
igor@333 46 hg tip --style=compact --patch
igor@333 47 hg annotate file1
igor@333 48
igor@333 49 #$ name: qseries
igor@333 50
igor@333 51 hg qseries
igor@333 52 hg qapplied
igor@333 53
igor@333 54 #$ name: qpop
igor@333 55
igor@333 56 hg qapplied
igor@333 57 hg qpop
igor@333 58 hg qseries
igor@333 59 hg qapplied
igor@333 60 cat file1
igor@333 61
igor@333 62 #$ name: qpush-a
igor@333 63
igor@333 64 hg qpush -a
igor@333 65 cat file1
igor@333 66
igor@333 67 #$ name: add
igor@333 68
igor@333 69 echo 'file 3, line 1' >> file3
igor@333 70 hg qnew add-file3.patch
igor@333 71 hg qnew -f add-file3.patch
igor@333 72
igor@333 73 #$ name:
igor@333 74 exit 0