[PATCH 1 of 1] templatefilters: avoid traceback caused by bogus date input (issue3344)

Matt Mackall mpm at selenic.com
Fri Oct 12 14:58:17 CDT 2012


On Fri, 2012-08-10 at 20:41 +0100, Christian Ebert wrote:
> # HG changeset patch
> # User Christian Ebert <blacktrash at gmx.net>
> # Date 1344627440 -3600
> # Node ID 7333df36336aa580c704ccdf94690974e3ef3ce0
> # Parent  2da47de36b6f550f5a7e20b2f182dae34ccfec67
> templatefilters: avoid traceback caused by bogus date input (issue3344)
> 
> Wrap datefilters which split date texts with util.parsedate.

I've taken this one, as it lets things like this do something sensible:

{localdate("jan 1 2001")}

Queued for default, thanks.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list