comparison mercurial/localrepo.py @ 13909:184cf2fa1046

tags: remove another check for valid nodes see 1aea86673dee
author Idan Kamara <idankk86@gmail.com>
date Thu, 07 Apr 2011 17:16:17 +0300
parents 31d15f761631
children cff56a0ed18e
comparison
equal deleted inserted replaced
13908:ba669bc7f851 13909:184cf2fa1046
388 388
389 def tagslist(self): 389 def tagslist(self):
390 '''return a list of tags ordered by revision''' 390 '''return a list of tags ordered by revision'''
391 l = [] 391 l = []
392 for t, n in self.tags().iteritems(): 392 for t, n in self.tags().iteritems():
393 try: 393 r = self.changelog.rev(n)
394 r = self.changelog.rev(n)
395 except error.LookupError:
396 r = -2 # sort to the beginning of the list if unknown
397 l.append((r, t, n)) 394 l.append((r, t, n))
398 return [(t, n) for r, t, n in sorted(l)] 395 return [(t, n) for r, t, n in sorted(l)]
399 396
400 def nodetags(self, node): 397 def nodetags(self, node):
401 '''return the tags associated with a node''' 398 '''return the tags associated with a node'''