mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN: Add date to changelog
This commit is contained in:
parent
a6f0c17b94
commit
5a4f440e5a
@ -1,7 +1,7 @@
|
||||
'''
|
||||
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
|
||||
|
||||
@ -33,7 +33,8 @@ class ChangelogFormatter(blog.LogFormatter):
|
||||
if match:
|
||||
if self.current_entry is not None:
|
||||
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()
|
||||
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user