comparison hgext/git/gitlog.py @ 45529:e7587430ca23

git: also convert timezone to int (issue6359) Credit to moshez for testing this in the wild. Differential Revision: https://phab.mercurial-scm.org/D9062
author Augie Fackler <augie@google.com>
date Mon, 21 Sep 2020 10:23:25 -0400
parents 66a10bd1b8db
children 6aacc39501f7
comparison
equal deleted inserted replaced
45528:5eee6f4f3d0d 45529:e7587430ca23
387 assert date is not None 387 assert date is not None
388 timestamp, tz = date 388 timestamp, tz = date
389 sig = pygit2.Signature( 389 sig = pygit2.Signature(
390 encoding.unifromlocal(stringutil.person(user)), 390 encoding.unifromlocal(stringutil.person(user)),
391 encoding.unifromlocal(stringutil.email(user)), 391 encoding.unifromlocal(stringutil.email(user)),
392 timestamp, 392 int(timestamp),
393 -int(tz // 60), 393 -int(tz // 60),
394 ) 394 )
395 oid = self.gitrepo.create_commit( 395 oid = self.gitrepo.create_commit(
396 None, sig, sig, desc, gitutil.togitnode(manifest), parents 396 None, sig, sig, desc, gitutil.togitnode(manifest), parents
397 ) 397 )