Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG5b836a4c9a1f: py3: use b'%d' to convert int to bytes instead of str()
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
indygreg |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
messagedifferent = self.committeractions['messagedifferent'] | messagedifferent = self.committeractions['messagedifferent'] | ||||
if messagealways: | if messagealways: | ||||
message += '\n%s %s\n' % (messagealways, committer) | message += '\n%s %s\n' % (messagealways, committer) | ||||
elif messagedifferent and author != committer: | elif messagedifferent and author != committer: | ||||
message += '\n%s %s\n' % (messagedifferent, committer) | message += '\n%s %s\n' % (messagedifferent, committer) | ||||
tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] | tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] | ||||
tz = -int(tzs) * (int(tzh) * 3600 + int(tzm)) | tz = -int(tzs) * (int(tzh) * 3600 + int(tzm)) | ||||
date = tm + " " + str(tz) | date = tm + " " + (b"%d" % tz) | ||||
saverev = self.ui.configbool('convert', 'git.saverev') | saverev = self.ui.configbool('convert', 'git.saverev') | ||||
c = common.commit(parents=parents, date=date, author=author, | c = common.commit(parents=parents, date=date, author=author, | ||||
desc=message, | desc=message, | ||||
rev=version, | rev=version, | ||||
extra=extra, | extra=extra, | ||||
saverev=saverev) | saverev=saverev) | ||||
return c | return c |