hgext/convert/git.py
changeset 4873 28b23b9073a8
parent 4810 c2d529f288a1
child 5121 ef338e34a906
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)