hgbook

diff es/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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/es/examples/template.svnstyle	Sun Dec 13 16:35:56 2009 +0900
     1.3 @@ -0,0 +1,70 @@
     1.4 +#!/bin/bash
     1.5 +
     1.6 +svn() {
     1.7 +  cat $EXAMPLE_DIR/svn-short.txt
     1.8 +}
     1.9 +
    1.10 +#$ name: short
    1.11 +
    1.12 +svn log -r9653
    1.13 +
    1.14 +#$ name:
    1.15 +
    1.16 +hg init myrepo
    1.17 +cd myrepo
    1.18 +
    1.19 +echo hello > hello
    1.20 +hg commit -Am'added hello'
    1.21 +
    1.22 +echo hello >> hello
    1.23 +echo goodbye > goodbye
    1.24 +echo '   added line to end of <<hello>> file.' > ../msg
    1.25 +echo '' >> ../msg
    1.26 +echo 'in addition, added a file with the helpful name (at least i hope that some might consider it so) of goodbye.' >> ../msg
    1.27 +
    1.28 +hg commit -Al../msg
    1.29 +
    1.30 +hg tag mytag
    1.31 +hg tag v0.1
    1.32 +
    1.33 +echo 'changeset = "{node|short}\n"' > svn.style
    1.34 +
    1.35 +#$ name: id
    1.36 +
    1.37 +hg log -r0 --template '{node}'
    1.38 +
    1.39 +#$ name: simplest
    1.40 +
    1.41 +cat svn.style
    1.42 +hg log -r1 --style svn.style
    1.43 +
    1.44 +#$ name:
    1.45 +
    1.46 +echo 'changeset =' > broken.style
    1.47 +
    1.48 +#$ name: syntax.input
    1.49 +
    1.50 +cat broken.style
    1.51 +
    1.52 +#$ name: syntax.error
    1.53 +
    1.54 +hg log -r1 --style broken.style
    1.55 +
    1.56 +#$ name:
    1.57 +
    1.58 +cp $EXAMPLE_DIR/svn.style .
    1.59 +cp $EXAMPLE_DIR/svn.template .
    1.60 +
    1.61 +#$ name: template
    1.62 +
    1.63 +cat svn.template
    1.64 +
    1.65 +#$ name: style
    1.66 +
    1.67 +cat svn.style
    1.68 +
    1.69 +#$ name: result
    1.70 +#$ ignore: \| 200[78].*
    1.71 +
    1.72 +hg log -r1 --style svn.style
    1.73 +