hgbook

annotate en/examples/ch10/multiline @ 696:9e33729cafae

Add a multiline template example.
author Bryan O'Sullivan <bos@serpentine.com>
date Tue Apr 28 23:33:11 2009 -0700 (2009-04-28)
parents
children
rev   line source
bos@696 1 #!/bin/sh
bos@696 2
bos@696 3 hg init
bos@696 4 echo a > test.c
bos@696 5 hg ci -Am'First commit'
bos@696 6
bos@696 7 #$ name: go
bos@696 8
bos@696 9 cat > multiline << EOF
bos@696 10 changeset = "Changed in {node|short}:\n{files}"
bos@696 11 file = " {file}\n"
bos@696 12 EOF
bos@696 13 hg log --style multiline