From 8b72616ae0d6adac396a40051a7c3c0e0e06f6b9 Mon Sep 17 00:00:00 2001 From: Idan Kamara Date: Mon, 4 Apr 2011 18:05:14 +0300 Subject: [PATCH] localrepo: tighten except clause when looking rev --- mercurial/localrepo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py index 6f1da20998..0c6f73416a 100644 --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -387,7 +387,7 @@ class localrepository(repo.repository): 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)]