hgext/convert/git.py
changeset 18572 5fe58f9332a4
parent 18570 dcf2d6fdf630
child 19121 478a04605ce1
equal deleted inserted replaced
18571:ad5817505834 18572:5fe58f9332a4
   229         prefix = 'refs/tags/'
   229         prefix = 'refs/tags/'
   230 
   230 
   231         # Build complete list of tags, both annotated and bare ones
   231         # Build complete list of tags, both annotated and bare ones
   232         for line in fh:
   232         for line in fh:
   233             line = line.strip()
   233             line = line.strip()
   234             if line.startswith("error:"):
   234             if line.startswith("error:") or line.startswith("fatal:"):
   235                 raise util.Abort(_('cannot read tags from %s') % self.path)
   235                 raise util.Abort(_('cannot read tags from %s') % self.path)
   236             node, tag = line.split(None, 1)
   236             node, tag = line.split(None, 1)
   237             if not tag.startswith(prefix):
   237             if not tag.startswith(prefix):
   238                 continue
   238                 continue
   239             alltags[tag[len(prefix):]] = node
   239             alltags[tag[len(prefix):]] = node