How to format UTC revision date

Christian Ebert blacktrash at gmx.net
Mon May 4 11:30:57 UTC 2015


* Yuya Nishihara on Monday, May 04, 2015 at 17:10:39 +0900
> On Mon, 4 May 2015 01:11:03 +0100, Christian Ebert wrote:
>>>> convert, patchbomb, share
>>>> Traceback (most recent call last):
>>> [...]
>>>> File "/usr/local/lib/python2.7/site-packages/mercurial/templater.py",
>>>> line 224, in date
>>>>   return util.datestr(date, fmt)
>>>> File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line
>>>> 1264, in datestr
>>>>   t, tz = date or makedate()
>>>> ValueError: too many values to unpack
>>> 
>>> It looks like a bug. Maybe date() have to catch ValueError.
>>> 
>>> FWIW, your utcdate() function should return (time, offset) tuple. My idea is
>>> to add "{utcoffset(date, offset=0)}" function.
>> 
>> http://selenic.com/hg/file/e9edd53770fb/hgext/keyword.py#l117
> 
> Oh, I see. So we'll need a filter function of different name.

Unfortunately it looks like it because of BC, normally core
should take priority, but it's been in keyword since ages.

-- 
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions



More information about the Mercurial mailing list