hgext/convert/hg.py
changeset 37395 810413b745ff
parent 37394 65705fbc9c37
child 37579 ce566e0f73d0
equal deleted inserted replaced
37394:65705fbc9c37 37395:810413b745ff
   361                 self.repo.rollback(force=True)
   361                 self.repo.rollback(force=True)
   362                 return parent
   362                 return parent
   363         return p2
   363         return p2
   364 
   364 
   365     def puttags(self, tags):
   365     def puttags(self, tags):
   366         try:
   366         tagparent = self.repo.branchtip(self.tagsbranch, ignoremissing=True)
   367             tagparent = self.repo[self.tagsbranch].node()
   367         tagparent = tagparent or nodemod.nullid
   368         except error.RepoError:
       
   369             tagparent = nodemod.nullid
       
   370 
   368 
   371         oldlines = set()
   369         oldlines = set()
   372         for branch, heads in self.repo.branchmap().iteritems():
   370         for branch, heads in self.repo.branchmap().iteritems():
   373             for h in heads:
   371             for h in heads:
   374                 if '.hgtags' in self.repo[h]:
   372                 if '.hgtags' in self.repo[h]: