Mercurial > public > mercurial-scm > hg
comparison hgext/git/gitlog.py @ 45413:8ddbb75bad09
git: convert tz offset to int (issue6359)
Differential Revision: https://phab.mercurial-scm.org/D8991
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 07 Sep 2020 15:31:34 -0400 |
parents | 83e41b73d115 |
children | 66a10bd1b8db |
comparison
equal
deleted
inserted
replaced
45411:a42999f611ff | 45413:8ddbb75bad09 |
---|---|
384 timestamp, tz = date | 384 timestamp, tz = date |
385 sig = pygit2.Signature( | 385 sig = pygit2.Signature( |
386 encoding.unifromlocal(stringutil.person(user)), | 386 encoding.unifromlocal(stringutil.person(user)), |
387 encoding.unifromlocal(stringutil.email(user)), | 387 encoding.unifromlocal(stringutil.email(user)), |
388 timestamp, | 388 timestamp, |
389 -(tz // 60), | 389 -int(tz // 60), |
390 ) | 390 ) |
391 oid = self.gitrepo.create_commit( | 391 oid = self.gitrepo.create_commit( |
392 None, sig, sig, desc, gitutil.togitnode(manifest), parents | 392 None, sig, sig, desc, gitutil.togitnode(manifest), parents |
393 ) | 393 ) |
394 # Set up an internal reference to force the commit into the | 394 # Set up an internal reference to force the commit into the |