hgext/convert/git.py
changeset 37581 5b836a4c9a1f
parent 37579 ce566e0f73d0
child 41478 8e0dd36f7a97
equal deleted inserted replaced
37580:1c3c9211a40e 37581:5b836a4c9a1f
   370             elif messagedifferent and author != committer:
   370             elif messagedifferent and author != committer:
   371                 message += '\n%s %s\n' % (messagedifferent, committer)
   371                 message += '\n%s %s\n' % (messagedifferent, committer)
   372 
   372 
   373         tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:]
   373         tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:]
   374         tz = -int(tzs) * (int(tzh) * 3600 + int(tzm))
   374         tz = -int(tzs) * (int(tzh) * 3600 + int(tzm))
   375         date = tm + " " + str(tz)
   375         date = tm + " " + (b"%d" % tz)
   376         saverev = self.ui.configbool('convert', 'git.saverev')
   376         saverev = self.ui.configbool('convert', 'git.saverev')
   377 
   377 
   378         c = common.commit(parents=parents, date=date, author=author,
   378         c = common.commit(parents=parents, date=date, author=author,
   379                           desc=message,
   379                           desc=message,
   380                           rev=version,
   380                           rev=version,