hgext/convert/hg.py
changeset 37394 65705fbc9c37
parent 37361 e45545f7895e
child 37395 810413b745ff
equal deleted inserted replaced
37393:afcfdf53e4b5 37394:65705fbc9c37
   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         try:
   367             parentctx = self.repo[self.tagsbranch]
   367             tagparent = self.repo[self.tagsbranch].node()
   368             tagparent = parentctx.node()
       
   369         except error.RepoError:
   368         except error.RepoError:
   370             parentctx = None
       
   371             tagparent = nodemod.nullid
   369             tagparent = nodemod.nullid
   372 
   370 
   373         oldlines = set()
   371         oldlines = set()
   374         for branch, heads in self.repo.branchmap().iteritems():
   372         for branch, heads in self.repo.branchmap().iteritems():
   375             for h in heads:
   373             for h in heads: