mercurial/help/templates.txt
branchstable
changeset 29717 a12d13eac513
parent 29085 df838803c1d4
child 30008 e83f89d3b1f7
--- a/mercurial/help/templates.txt	Fri Aug 05 16:25:15 2016 -0400
+++ b/mercurial/help/templates.txt	Mon Aug 08 16:47:42 2016 +0200
@@ -71,6 +71,20 @@
 defines two symbol aliases, ``r`` and ``rn``, and a function alias
 ``leftpad()``.
 
+It's also possible to specify complete template strings, using the
+``templates`` section. The syntax used is the general template string syntax.
+
+For example,
+
+::
+
+  [templates]
+  nodedate = "{node|short}: {date(date, "%Y-%m-%d")}\n"
+
+defines a template, ``nodedate``, which can be called like::
+
+  $ hg log -r . -Tnodedate
+
 Some sample command line templates:
 
 - Format lists, e.g. files::