# HG changeset patch
# User Manuel Jacob <me@manueljacob.de>
# Date 1588505571 -7200
#      Sun May 03 13:32:51 2020 +0200
# Node ID d86c8936b66717d38a265f2febd6992722d7a6bc
# Parent  3df79ea43104f402945f31c037ddb21d976fd850
git_handler: set commit_time as integer

On Python 2, it worked fine before because str(b'123') == str(123).

diff --git a/hggit/git_handler.py b/hggit/git_handler.py
--- a/hggit/git_handler.py
+++ b/hggit/git_handler.py
@@ -566,7 +566,7 @@
                 # fixup timezone
                 (name, timestamp, timezone) = extra[b'committer'].rsplit(b' ', 2)
                 commit.committer = name
-                commit.commit_time = timestamp
+                commit.commit_time = int(timestamp)
 
                 # work around a timezone format change
                 if int(timezone) % 60 != 0:  # pragma: no cover