hgext/convert/git.py
changeset 4721 96614af3c679
parent 4684 06a0e0557edc
child 4759 20ec5cc02f18
child 5216 39e6deaa8b81
equal deleted inserted replaced
4720:72fb6f10fac1 4721:96614af3c679
    80             if n == "parent": parents.append(v)
    80             if n == "parent": parents.append(v)
    81 
    81 
    82         tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:]
    82         tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:]
    83         tz = -int(tzs) * (int(tzh) * 3600 + int(tzm))
    83         tz = -int(tzs) * (int(tzh) * 3600 + int(tzm))
    84         date = tm + " " + str(tz)
    84         date = tm + " " + str(tz)
    85         author = author or unknown
    85         author = author or "unknown"
    86 
    86 
    87         c = commit(parents=parents, date=date, author=author, desc=message)
    87         c = commit(parents=parents, date=date, author=author, desc=message)
    88         return c
    88         return c
    89 
    89 
    90     def gettags(self):
    90     def gettags(self):