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