hgbook
view en/examples/template.svnstyle @ 144:006bbad1f190
Add expected output files.
This makes it possible to spot changes in Mercurial's output and
behaviour over time.
This makes it possible to spot changes in Mercurial's output and
behaviour over time.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue Mar 06 21:44:56 2007 -0800 (2007-03-06) |
parents | 627effec9d4e |
children | 5ffee9123bbf |
line source
1 #!/bin/bash
3 svn() {
4 cat $EXAMPLE_DIR/svn-short.txt
5 }
7 #$ name: short
9 svn log -r9653
11 #$ name:
13 hg init myrepo
14 cd myrepo
16 echo hello > hello
17 hg commit -Am'added hello'
19 echo hello >> hello
20 echo goodbye > goodbye
21 echo ' added line to end of <<hello>> file.' > ../msg
22 echo '' >> ../msg
23 echo 'in addition, added a file with the helpful name (at least i hope that some might consider it so) of goodbye.' >> ../msg
25 hg commit -Al../msg
27 hg tag mytag
28 hg tag v0.1
30 echo 'changeset = "{node|short}\n"' > svn.style
32 #$ name: id
34 hg log -r0 --template '{node}'
36 #$ name: simplest
38 cat svn.style
39 hg log -r1 --style svn.style
41 #$ name:
43 echo 'changeset =' > broken.style
45 #$ name: syntax.input
47 cat broken.style
49 #$ name: syntax.error
51 hg log -r1 --style broken.style
53 #$ name:
55 cp $EXAMPLE_DIR/svn.style .
56 cp $EXAMPLE_DIR/svn.template .
58 #$ name: template
60 cat svn.template
62 #$ name: style
64 cat svn.style
66 #$ name: result
67 #$ ignore: \| 200[78].*
69 hg log -r1 --style svn.style