comparison mercurial/localrepo.py @ 13872:e6bd5b403de0

localrepo: tighten except clause when looking rev
author Idan Kamara <idankk86@gmail.com>
date Mon, 04 Apr 2011 18:05:14 +0300
parents d69c9510d648
children a8d13ee0ce68
comparison
equal deleted inserted replaced
13871:22d200e49b10 13872:e6bd5b403de0
385 '''return a list of tags ordered by revision''' 385 '''return a list of tags ordered by revision'''
386 l = [] 386 l = []
387 for t, n in self.tags().iteritems(): 387 for t, n in self.tags().iteritems():
388 try: 388 try:
389 r = self.changelog.rev(n) 389 r = self.changelog.rev(n)
390 except: 390 except error.LookupError:
391 r = -2 # sort to the beginning of the list if unknown 391 r = -2 # sort to the beginning of the list if unknown
392 l.append((r, t, n)) 392 l.append((r, t, n))
393 return [(t, n) for r, t, n in sorted(l)] 393 return [(t, n) for r, t, n in sorted(l)]
394 394
395 def nodetags(self, node): 395 def nodetags(self, node):