Mercurial > hg-stable
diff mercurial/help/templates.txt @ 10759:9f6e30a89f11 stable
help: point out need for stringification
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Tue, 23 Mar 2010 11:48:14 +0100 |
parents | 788e7d04c594 |
children | 3b89899934a6 |
line wrap: on
line diff
--- a/mercurial/help/templates.txt Tue Mar 23 10:18:46 2010 +0100 +++ b/mercurial/help/templates.txt Tue Mar 23 11:48:14 2010 +0100 @@ -66,8 +66,9 @@ The "date" keyword does not produce human-readable output. If you want to use a date in your output, you can use a filter to process it. Filters are functions which return a string based on the input -variable. You can also use a chain of filters to get the desired -output:: +variable. Be sure to use the stringify filter first when you're +applying a string-input filter to a list-like input variable. +You can also use a chain of filters to get the desired output:: $ hg tip --template "{date|isodate}\n" 2008-08-21 18:22 +0000