hgbook

view ja/examples/template.svnstyle @ 1114:527b86d55d4a

inotify: update installation information

inotify is shipped in Mercurial since 1.0, which greatly simplifies the installation process
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Sun Dec 13 16:35:56 2009 +0900 (2009-12-13)
parents
children
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