comparison hgext/convert/git.py @ 4721:96614af3c679

convert: "unknown" is a string
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 25 Jun 2007 18:52:12 -0300
parents 06a0e0557edc
children 20ec5cc02f18 39e6deaa8b81
comparison
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):