hgbook
annotate es/examples/template.svnstyle @ 1061:825259963afd
1.8 zh first 3 paras translated
author | Zhaoping Sun <zhaopingsun@gmail.com> |
---|---|
date | Tue Nov 10 21:46:41 2009 -0500 (2009-11-10) |
parents | |
children |
rev | line source |
---|---|
igor@333 | 1 #!/bin/bash |
igor@333 | 2 |
igor@333 | 3 svn() { |
igor@333 | 4 cat $EXAMPLE_DIR/svn-short.txt |
igor@333 | 5 } |
igor@333 | 6 |
igor@333 | 7 #$ name: short |
igor@333 | 8 |
igor@333 | 9 svn log -r9653 |
igor@333 | 10 |
igor@333 | 11 #$ name: |
igor@333 | 12 |
igor@333 | 13 hg init myrepo |
igor@333 | 14 cd myrepo |
igor@333 | 15 |
igor@333 | 16 echo hello > hello |
igor@333 | 17 hg commit -Am'added hello' |
igor@333 | 18 |
igor@333 | 19 echo hello >> hello |
igor@333 | 20 echo goodbye > goodbye |
igor@333 | 21 echo ' added line to end of <<hello>> file.' > ../msg |
igor@333 | 22 echo '' >> ../msg |
igor@333 | 23 echo 'in addition, added a file with the helpful name (at least i hope that some might consider it so) of goodbye.' >> ../msg |
igor@333 | 24 |
igor@333 | 25 hg commit -Al../msg |
igor@333 | 26 |
igor@333 | 27 hg tag mytag |
igor@333 | 28 hg tag v0.1 |
igor@333 | 29 |
igor@333 | 30 echo 'changeset = "{node|short}\n"' > svn.style |
igor@333 | 31 |
igor@333 | 32 #$ name: id |
igor@333 | 33 |
igor@333 | 34 hg log -r0 --template '{node}' |
igor@333 | 35 |
igor@333 | 36 #$ name: simplest |
igor@333 | 37 |
igor@333 | 38 cat svn.style |
igor@333 | 39 hg log -r1 --style svn.style |
igor@333 | 40 |
igor@333 | 41 #$ name: |
igor@333 | 42 |
igor@333 | 43 echo 'changeset =' > broken.style |
igor@333 | 44 |
igor@333 | 45 #$ name: syntax.input |
igor@333 | 46 |
igor@333 | 47 cat broken.style |
igor@333 | 48 |
igor@333 | 49 #$ name: syntax.error |
igor@333 | 50 |
igor@333 | 51 hg log -r1 --style broken.style |
igor@333 | 52 |
igor@333 | 53 #$ name: |
igor@333 | 54 |
igor@333 | 55 cp $EXAMPLE_DIR/svn.style . |
igor@333 | 56 cp $EXAMPLE_DIR/svn.template . |
igor@333 | 57 |
igor@333 | 58 #$ name: template |
igor@333 | 59 |
igor@333 | 60 cat svn.template |
igor@333 | 61 |
igor@333 | 62 #$ name: style |
igor@333 | 63 |
igor@333 | 64 cat svn.style |
igor@333 | 65 |
igor@333 | 66 #$ name: result |
igor@333 | 67 #$ ignore: \| 200[78].* |
igor@333 | 68 |
igor@333 | 69 hg log -r1 --style svn.style |
igor@333 | 70 |