tags: remove another check for valid nodes
authorIdan Kamara <idankk86@gmail.com>
Thu, 07 Apr 2011 17:16:17 +0300
changeset 13909 184cf2fa1046
parent 13908 ba669bc7f851
child 13910 93452579df9e
tags: remove another check for valid nodes see 1aea86673dee
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Thu Apr 07 16:20:40 2011 +0300
+++ b/mercurial/localrepo.py	Thu Apr 07 17:16:17 2011 +0300
@@ -390,10 +390,7 @@
         '''return a list of tags ordered by revision'''
         l = []
         for t, n in self.tags().iteritems():
-            try:
-                r = self.changelog.rev(n)
-            except error.LookupError:
-                r = -2 # sort to the beginning of the list if unknown
+            r = self.changelog.rev(n)
             l.append((r, t, n))
         return [(t, n) for r, t, n in sorted(l)]