# HG changeset patch # User Martin von Zweigbergk # Date 1538067373 25200 # Node ID 2327abace563dd8560efeb87358479d390106b78 # Parent 4017968f0a1d7dc581c8a7682c234a1b77f10e92 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 diff -r 4017968f0a1d -r 2327abace563 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(