Mercurial > hg
comparison contrib/convert-repo @ 3910:4bc5a2405b12
convert-repo: fix recoding of committer
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 16 Dec 2006 14:35:14 -0600 |
parents | 158fce02dc40 |
children | fe075ddf3272 |
comparison
equal
deleted
inserted
replaced
3908:8020c35b6455 | 3910:4bc5a2405b12 |
---|---|
83 p = v.split() | 83 p = v.split() |
84 tm, tz = p[-2:] | 84 tm, tz = p[-2:] |
85 committer = " ".join(p[:-2]) | 85 committer = " ".join(p[:-2]) |
86 if committer[0] == "<": committer = committer[1:-1] | 86 if committer[0] == "<": committer = committer[1:-1] |
87 committer = recode(committer) | 87 committer = recode(committer) |
88 message += "\ncommitter: %s\n" % v | 88 message += "\ncommitter: %s\n" % committer |
89 if n == "parent": parents.append(v) | 89 if n == "parent": parents.append(v) |
90 | 90 |
91 tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] | 91 tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] |
92 tz = -int(tzs) * (int(tzh) * 3600 + int(tzm)) | 92 tz = -int(tzs) * (int(tzh) * 3600 + int(tzm)) |
93 date = tm + " " + str(tz) | 93 date = tm + " " + str(tz) |