mercurial/localrepo.py
changeset 13872 e6bd5b403de0
parent 13831 d69c9510d648
child 13878 a8d13ee0ce68
--- a/mercurial/localrepo.py	Mon Apr 04 17:37:18 2011 +0100
+++ b/mercurial/localrepo.py	Mon Apr 04 18:05:14 2011 +0300
@@ -387,7 +387,7 @@
         for t, n in self.tags().iteritems():
             try:
                 r = self.changelog.rev(n)
-            except:
+            except error.LookupError:
                 r = -2 # sort to the beginning of the list if unknown
             l.append((r, t, n))
         return [(t, n) for r, t, n in sorted(l)]