hgext/convert/hg.py
changeset 6956 12472a240398
parent 6923 ebf1462f2145
child 7231 8e7130a10f3b
equal deleted inserted replaced
6955:a9411e29773f 6956:12472a240398
   175          data = "".join(newlines)
   175          data = "".join(newlines)
   176 
   176 
   177          def getfilectx(repo, memctx, f):
   177          def getfilectx(repo, memctx, f):
   178             return context.memfilectx(f, data, False, False, None)
   178             return context.memfilectx(f, data, False, False, None)
   179 
   179 
   180          self.ui.status("updating tags\n")
   180          self.ui.status(_("updating tags\n"))
   181          date = "%s 0" % int(time.mktime(time.gmtime()))
   181          date = "%s 0" % int(time.mktime(time.gmtime()))
   182          extra = {'branch': self.tagsbranch}
   182          extra = {'branch': self.tagsbranch}
   183          ctx = context.memctx(self.repo, (tagparent, None), "update tags",
   183          ctx = context.memctx(self.repo, (tagparent, None), "update tags",
   184                               [".hgtags"], getfilectx, "convert-repo", date,
   184                               [".hgtags"], getfilectx, "convert-repo", date,
   185                               extra)
   185                               extra)