context: stop catching and re-raising FilteredRepoLookupError
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 27 Sep 2018 09:56:13 -0700
changeset 39906 2327abace563
parent 39905 4017968f0a1d
child 39907 8cef57031bbe
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
mercurial/context.py
--- 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(