--- a/hgpoll.py Mon Jan 11 18:29:14 2016 +0200 +++ b/hgpoll.py Tue Jan 12 21:14:26 2016 +0200 @@ -40,6 +40,7 @@ import traceback import sys from munge import munge +import datetime Repositories = [] RepositoriesByName = {} @@ -115,10 +116,13 @@ # Acquire additional data commit = repo.get_commit_data (rev=cset, author='author|person', - date='date(date, "%A %d %B %Y %H:%M:%S")', + date='date|hgdate', email='author|email', message='desc') + commit['date'] = datetime.datetime.utcfromtimestamp(int(commit['date'][0]) - int(commit['date'][1])) + commit['date'] = commit['date'].strftime('%A %d %B %Y %H:%M:%S') + diffstat = repo.hg ('diff', '--change', cset, '--stat') try: