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