changeset 39911:2327abace563

context: stop catching and re-raising FilteredRepoLookupError FilteredRepoLookupError is only raised by changectx's constructor and the higher-level scmutil.revsymbol(), so there's no need to catch it in changectx's constructor. Differential Revision: https://phab.mercurial-scm.org/D4806
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 27 Sep 2018 09:56:13 -0700
parents 4017968f0a1d
children 8cef57031bbe
files mercurial/context.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Fri Sep 28 22:18:45 2018 -0400
+++ b/mercurial/context.py	Thu Sep 27 09:56:13 2018 -0700
@@ -445,8 +445,6 @@
         except (error.FilteredIndexError, error.FilteredLookupError):
             raise error.FilteredRepoLookupError(_("filtered revision '%s'")
                                                 % pycompat.bytestr(changeid))
-        except error.FilteredRepoLookupError:
-            raise
         except IndexError:
             pass
         raise error.RepoLookupError(