IGN: Add date to changelog

This commit is contained in:
Kovid Goyal 2008-07-09 08:45:44 -07:00
parent a6f0c17b94
commit 5a4f440e5a

View File

@ -1,7 +1,7 @@
''' '''
Trac Macro to generate an end use Changelog from the svn logs. Trac Macro to generate an end use Changelog from the svn logs.
''' '''
import re, collections import re, collections, time
from bzrlib import log as blog, branch from bzrlib import log as blog, branch
@ -33,7 +33,8 @@ class ChangelogFormatter(blog.LogFormatter):
if match: if match:
if self.current_entry is not None: if self.current_entry is not None:
self.entries.append((self.current_entry, set(self.messages))) self.entries.append((self.current_entry, set(self.messages)))
self.current_entry = match.group(1) timestamp = r.rev.timezone + r.rev.timestamp
self.current_entry = match.group(1) + time.strftime(' (%d %b, %Y)', time.gmtime(timestamp))
self.messages = collections.deque() self.messages = collections.deque()
else: else: