Mercurial > hg
comparison contrib/convert-repo @ 2093:5cc414722587
convert-repo: fix reversed time zone offset
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Wed, 19 Apr 2006 11:29:41 -0700 |
parents | 40346aa66b0f |
children | e6a7a6a33a62 |
comparison
equal
deleted
inserted
replaced
2092:1d3c6e63d703 | 2093:5cc414722587 |
---|---|
71 if committer[0] == "<": committer = committer[1:-1] | 71 if committer[0] == "<": committer = committer[1:-1] |
72 message += "\ncommitter: %s\n" % v | 72 message += "\ncommitter: %s\n" % v |
73 if n == "parent": parents.append(v) | 73 if n == "parent": parents.append(v) |
74 | 74 |
75 tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] | 75 tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] |
76 tz = int(tzs) * (int(tzh) * 3600 + int(tzm)) | 76 tz = -int(tzs) * (int(tzh) * 3600 + int(tzm)) |
77 date = tm + " " + str(tz) | 77 date = tm + " " + str(tz) |
78 return (parents, author, date, message) | 78 return (parents, author, date, message) |
79 | 79 |
80 def gettags(self): | 80 def gettags(self): |
81 tags = {} | 81 tags = {} |