##// END OF EJS Templates
keyword: reference templating help, add utcdate filter example
Christian Ebert -
r9307:2715506d default
parent child Browse files
Show More
@@ -49,9 +49,11 b' NOTE: the more specific you are in your '
49 lose speed in huge repositories.
49 lose speed in huge repositories.
50
50
51 For [keywordmaps] template mapping and expansion demonstration and
51 For [keywordmaps] template mapping and expansion demonstration and
52 control run "hg kwdemo".
52 control run "hg kwdemo". See "hg help templates" for a list of
53 available templates and filters.
53
54
54 An additional date template filter {date|utcdate} is provided.
55 An additional date template filter {date|utcdate} is provided. It
56 returns a date like "2006/09/18 15:13:13".
55
57
56 The default template mappings (view with "hg kwdemo -d") can be
58 The default template mappings (view with "hg kwdemo -d") can be
57 replaced with customized keywords and templates. Again, run "hg
59 replaced with customized keywords and templates. Again, run "hg
@@ -280,6 +282,8 b' def demo(ui, repo, *args, **opts):'
280 and using -f/--rcfile to source an external hgrc file.
282 and using -f/--rcfile to source an external hgrc file.
281
283
282 Use -d/--default to disable current configuration.
284 Use -d/--default to disable current configuration.
285
286 See "hg help templates" for information on templates and filters.
283 '''
287 '''
284 def demoitems(section, items):
288 def demoitems(section, items):
285 ui.write('[%s]\n' % section)
289 ui.write('[%s]\n' % section)
General Comments 0
You need to be logged in to leave comments. Login now