Mercurial > hg
comparison hgext/convert/git.py @ 4684:06a0e0557edc
convert: sometimes git forgets the author
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 23 Jun 2007 13:33:45 -0500 |
parents | cc9b79216a76 |
children | 96614af3c679 |
comparison
equal
deleted
inserted
replaced
4683:8c3d449ecc63 | 4684:06a0e0557edc |
---|---|
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 | 86 |
86 c = commit(parents=parents, date=date, author=author, desc=message) | 87 c = commit(parents=parents, date=date, author=author, desc=message) |
87 return c | 88 return c |
88 | 89 |
89 def gettags(self): | 90 def gettags(self): |