[PATCH 2 of 3] keyword: reference templating help, add utcdate filter example

Christian Ebert blacktrash at gmx.net
Tue Aug 4 13:14:01 CDT 2009


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1249408976 -7200
# Node ID 013900f8fbfa1da320691ba01e53df5b7e86468e
# Parent  9c50e170ec41e307e297b4cf33228b37d6a8982d
keyword: reference templating help, add utcdate filter example

diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -49,9 +49,11 @@
 lose speed in huge repositories.
 
 For [keywordmaps] template mapping and expansion demonstration and
-control run "hg kwdemo".
+control run "hg kwdemo". See "hg help templates" for a list of
+available templates and filters.
 
-An additional date template filter {date|utcdate} is provided.
+An additional date template filter {date|utcdate} is provided. It
+returns a date like "2006/09/18 15:13:13".
 
 The default template mappings (view with "hg kwdemo -d") can be
 replaced with customized keywords and templates. Again, run "hg
@@ -280,6 +282,8 @@
     and using -f/--rcfile to source an external hgrc file.
 
     Use -d/--default to disable current configuration.
+
+    See "hg help templates" for information on templates and filters.
     '''
     def demoitems(section, items):
         ui.write('[%s]\n' % section)


More information about the Mercurial-devel mailing list