hgext/convert/hg.py
changeset 5553 ee80591f5636
parent 5522 f5345a2d2391
child 5554 2147a734dcf9
equal deleted inserted replaced
5542:253736bb0dc9 5553:ee80591f5636
   239 
   239 
   240     def getcommit(self, rev):
   240     def getcommit(self, rev):
   241         ctx = self.changectx(rev)
   241         ctx = self.changectx(rev)
   242         parents = [hex(p.node()) for p in ctx.parents() if p.node() != nullid]
   242         parents = [hex(p.node()) for p in ctx.parents() if p.node() != nullid]
   243         return commit(author=ctx.user(), date=util.datestr(ctx.date()),
   243         return commit(author=ctx.user(), date=util.datestr(ctx.date()),
   244                       desc=ctx.description(), parents=parents,
   244                       desc=ctx.description(), rev=rev, parents=parents,
   245                       branch=ctx.branch(), extra=ctx.extra())
   245                       branch=ctx.branch(), extra=ctx.extra())
   246 
   246 
   247     def gettags(self):
   247     def gettags(self):
   248         tags = [t for t in self.repo.tagslist() if t[0] != 'tip']
   248         tags = [t for t in self.repo.tagslist() if t[0] != 'tip']
   249         return dict([(name, hex(node)) for name, node in tags])
   249         return dict([(name, hex(node)) for name, node in tags])