Changelog generator script for contrib

Vincent Wagelaar vincent at ricardis.tudelft.nl
Wed Aug 10 08:59:15 CDT 2005


On Wednesday 10 August 2005 15:29, Thomas Arendsen Hein wrote:
> * Vincent Wagelaar <vincent at ricardis.tudelft.nl> [20050810 15:04]:
> > I created a changelog generator script.  It can be downloaded from:
> >
> > http://hannibal.lr-s.tudelft.nl/~vincent/mercurial/hg-changelog
>
> Looks quite nice :)
>
> I encountered an error:
>
> Traceback (most recent call last):
>   File "../../misc/hg-changelog", line 25, in ?
>     date = time.strftime("%Y-%m-%d", time.gmtime(eval(changes[2])))
>   File "<string>", line 1
>     1123559388 28800
>                   ^
> SyntaxError: unexpected EOF while parsing
>
> oops ... eval? I'm not sure if I really want to pass unfiltered text
> directly to the eval command.
Fixed ... please re-download

   t = time.gmtime(long(changes[2].split(" ")[0]))
   date = time.strftime("%Y-%m-%d", t)

> Thomas


More information about the Mercurial mailing list