Mercurial > hgbook
annotate en/examples/ch10/multiline @ 838:d1f676a6a4b3 default tip
update mq chapter.
propagate ef53d025f410.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 03 Dec 2009 01:26:08 +0900 |
parents | 9e33729cafae |
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 |