hgbook
annotate en/examples/template.svnstyle @ 171:8c1703a98266
Add a dependency on htlatex to HTML targets, even though we don't call it.
If the files it ships with aren't present, we can't build HTML.
If the files it ships with aren't present, we can't build HTML.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon Mar 26 23:57:58 2007 -0700 (2007-03-26) |
parents | 627effec9d4e |
children | 5ffee9123bbf |
rev | line source |
---|---|
bos@83 | 1 #!/bin/bash |
bos@83 | 2 |
bos@83 | 3 svn() { |
bos@83 | 4 cat $EXAMPLE_DIR/svn-short.txt |
bos@83 | 5 } |
bos@83 | 6 |
bos@83 | 7 #$ name: short |
bos@83 | 8 |
bos@83 | 9 svn log -r9653 |
bos@83 | 10 |
bos@83 | 11 #$ name: |
bos@83 | 12 |
bos@83 | 13 hg init myrepo |
bos@83 | 14 cd myrepo |
bos@83 | 15 |
bos@83 | 16 echo hello > hello |
bos@83 | 17 hg commit -Am'added hello' |
bos@83 | 18 |
bos@83 | 19 echo hello >> hello |
bos@83 | 20 echo goodbye > goodbye |
bos@83 | 21 echo ' added line to end of <<hello>> file.' > ../msg |
bos@83 | 22 echo '' >> ../msg |
bos@83 | 23 echo 'in addition, added a file with the helpful name (at least i hope that some might consider it so) of goodbye.' >> ../msg |
bos@83 | 24 |
bos@83 | 25 hg commit -Al../msg |
bos@83 | 26 |
bos@83 | 27 hg tag mytag |
bos@83 | 28 hg tag v0.1 |
bos@83 | 29 |
bos@83 | 30 echo 'changeset = "{node|short}\n"' > svn.style |
bos@83 | 31 |
bos@83 | 32 #$ name: id |
bos@83 | 33 |
bos@83 | 34 hg log -r0 --template '{node}' |
bos@83 | 35 |
bos@83 | 36 #$ name: simplest |
bos@83 | 37 |
bos@83 | 38 cat svn.style |
bos@83 | 39 hg log -r1 --style svn.style |
bos@83 | 40 |
bos@83 | 41 #$ name: |
bos@83 | 42 |
bos@83 | 43 echo 'changeset =' > broken.style |
bos@83 | 44 |
bos@83 | 45 #$ name: syntax.input |
bos@83 | 46 |
bos@83 | 47 cat broken.style |
bos@83 | 48 |
bos@83 | 49 #$ name: syntax.error |
bos@83 | 50 |
bos@83 | 51 hg log -r1 --style broken.style |
bos@83 | 52 |
bos@83 | 53 #$ name: |
bos@83 | 54 |
bos@83 | 55 cp $EXAMPLE_DIR/svn.style . |
bos@83 | 56 cp $EXAMPLE_DIR/svn.template . |
bos@83 | 57 |
bos@83 | 58 #$ name: template |
bos@83 | 59 |
bos@83 | 60 cat svn.template |
bos@83 | 61 |
bos@83 | 62 #$ name: style |
bos@83 | 63 |
bos@83 | 64 cat svn.style |
bos@83 | 65 |
bos@83 | 66 #$ name: result |
bos@143 | 67 #$ ignore: \| 200[78].* |
bos@83 | 68 |
bos@83 | 69 hg log -r1 --style svn.style |
bos@83 | 70 |