##// END OF EJS Templates
localrepo: ignore tags to unknown nodes (issue2750)
Idan Kamara -
r13892:31d15f76 default
parent child Browse files
Show More
@@ -362,7 +362,12 b' class localrepository(repo.repository):'
362 tags = {}
362 tags = {}
363 for (name, (node, hist)) in alltags.iteritems():
363 for (name, (node, hist)) in alltags.iteritems():
364 if node != nullid:
364 if node != nullid:
365 tags[encoding.tolocal(name)] = node
365 try:
366 # ignore tags to unknown nodes
367 self.changelog.lookup(node)
368 tags[encoding.tolocal(name)] = node
369 except error.LookupError:
370 pass
366 tags['tip'] = self.changelog.tip()
371 tags['tip'] = self.changelog.tip()
367 tagtypes = dict([(encoding.tolocal(name), value)
372 tagtypes = dict([(encoding.tolocal(name), value)
368 for (name, value) in tagtypes.iteritems()])
373 for (name, value) in tagtypes.iteritems()])
General Comments 0
You need to be logged in to leave comments. Login now