changeset 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 22d200e49b10
children 02c3d4d44a92
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)]