Patchwork D8991: git: convert tz offset to int (issue6359)

login
register
mail settings
Submitter phabricator
Date Sept. 7, 2020, 9:30 p.m.
Message ID <differential-rev-PHID-DREV-osoaaxyuom2yu6rk2q67-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47100/
State Superseded
Headers show

Comments

phabricator - Sept. 7, 2020, 9:30 p.m.
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8991

AFFECTED FILES
  hgext/git/gitlog.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/hgext/git/gitlog.py b/hgext/git/gitlog.py
--- a/hgext/git/gitlog.py
+++ b/hgext/git/gitlog.py
@@ -386,7 +386,7 @@ 
             encoding.unifromlocal(stringutil.person(user)),
             encoding.unifromlocal(stringutil.email(user)),
             timestamp,
-            -(tz // 60),
+            -int(tz // 60),
         )
         oid = self.gitrepo.create_commit(
             None, sig, sig, desc, gitutil.togitnode(manifest), parents