diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/en/examples/ch10/multiline	Tue Apr 28 23:33:11 2009 -0700
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+hg init
+echo a > test.c
+hg ci -Am'First commit'
+
+#$ name: go
+
+cat > multiline << EOF
+changeset = "Changed in {node|short}:\n{files}"
+file = "  {file}\n"
+EOF
+hg log --style multiline