# HG changeset patch # User Pierre-Yves David # Date 1419383631 28800 # Node ID 8f32dcfbc338fc0a1960c31655d56eeccffc7c32 # Parent 164915e8ef7b03ba8157aa4cfd9cd5701ae5df24 context: catch FilteredRepoLookupError instead of RepoLookupError Now that we have a more specialised exception, lets use it when we meant to catch the more specialised case. diff -r 164915e8ef7b -r 8f32dcfbc338 mercurial/context.py --- a/mercurial/context.py Thu Nov 27 10:16:56 2014 -0500 +++ b/mercurial/context.py Tue Dec 23 17:13:51 2014 -0800 @@ -895,7 +895,7 @@ def _changectx(self): try: return changectx(self._repo, self._changeid) - except error.RepoLookupError: + except error.FilteredRepoLookupError: # Linkrev may point to any revision in the repository. When the # repository is filtered this may lead to `filectx` trying to build # `changectx` for filtered revision. In such case we fallback to