Mercurial > hg
comparison hgext/convert/git.py @ 4873:28b23b9073a8
convert: record the source revision in the changelog
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Fri, 13 Jul 2007 08:28:57 -0700 |
parents | c2d529f288a1 |
children | ef338e34a906 |
comparison
equal
deleted
inserted
replaced
4872:419a6f715c6a | 4873:28b23b9073a8 |
---|---|
78 tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] | 78 tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] |
79 tz = -int(tzs) * (int(tzh) * 3600 + int(tzm)) | 79 tz = -int(tzs) * (int(tzh) * 3600 + int(tzm)) |
80 date = tm + " " + str(tz) | 80 date = tm + " " + str(tz) |
81 author = author or "unknown" | 81 author = author or "unknown" |
82 | 82 |
83 c = commit(parents=parents, date=date, author=author, desc=message) | 83 c = commit(parents=parents, date=date, author=author, desc=message, |
84 rev=version) | |
84 return c | 85 return c |
85 | 86 |
86 def gettags(self): | 87 def gettags(self): |
87 tags = {} | 88 tags = {} |
88 fh = self.gitcmd('git-ls-remote --tags "%s" 2>/dev/null' % self.path) | 89 fh = self.gitcmd('git-ls-remote --tags "%s" 2>/dev/null' % self.path) |