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) |