Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHG8ddbb75bad09: git: convert tz offset to int (issue6359)
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
| pulkit |
| hg-reviewers |
| No Linters Available |
| No Unit Test Coverage |
| if p2 and p2 != nodemod.nullid: | if p2 and p2 != nodemod.nullid: | ||||
| parents.append(hp2) | parents.append(hp2) | ||||
| assert date is not None | assert date is not None | ||||
| timestamp, tz = date | timestamp, tz = date | ||||
| sig = pygit2.Signature( | sig = pygit2.Signature( | ||||
| encoding.unifromlocal(stringutil.person(user)), | encoding.unifromlocal(stringutil.person(user)), | ||||
| encoding.unifromlocal(stringutil.email(user)), | encoding.unifromlocal(stringutil.email(user)), | ||||
| timestamp, | timestamp, | ||||
| -(tz // 60), | -int(tz // 60), | ||||
| ) | ) | ||||
| oid = self.gitrepo.create_commit( | oid = self.gitrepo.create_commit( | ||||
| None, sig, sig, desc, gitutil.togitnode(manifest), parents | None, sig, sig, desc, gitutil.togitnode(manifest), parents | ||||
| ) | ) | ||||
| # Set up an internal reference to force the commit into the | # Set up an internal reference to force the commit into the | ||||
| # changelog. Hypothetically, we could even use this refs/hg/ | # changelog. Hypothetically, we could even use this refs/hg/ | ||||
| # namespace to allow for anonymous heads on git repos, which | # namespace to allow for anonymous heads on git repos, which | ||||
| # would be neat. | # would be neat. | ||||