How to format UTC revision date
Yuya Nishihara
yuya at tcha.org
Mon May 4 08:10:39 UTC 2015
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.
More information about the Mercurial
mailing list