# HG changeset patch # User Dirkjan Ochtman # Date 2010-03-23 10:48:14 # Node ID 9f6e30a89f1112b07501e23dab272d41f0cf57b6 # Parent 32023a0a389b19da430281d6d9c3a370a5d2ebda help: point out need for stringification diff --git a/mercurial/help/templates.txt b/mercurial/help/templates.txt --- a/mercurial/help/templates.txt +++ b/mercurial/help/templates.txt @@ -66,8 +66,9 @@ keywords are usually available for templ 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