D3145: context: stop catching RepoLookupError from namespace.singlenode()

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Fri Apr 6 12:39:55 EDT 2018


martinvonz updated this revision to Diff 7781.
martinvonz edited the summary of this revision.
martinvonz retitled this revision from "context: catch right exceptions from namespace lookup (API)" to "context: stop catching RepoLookupError from namespace.singlenode()".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3145?vs=7756&id=7781

REVISION DETAIL
  https://phab.mercurial-scm.org/D3145

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -449,10 +449,6 @@
                 return
             except KeyError:
                 pass
-            except error.FilteredRepoLookupError:
-                raise
-            except error.RepoLookupError:
-                pass
 
             self._node = repo.unfiltered().changelog._partialmatch(changeid)
             if self._node is not None:



To: martinvonz, #hg-reviewers, yuja
Cc: yuja, mercurial-devel


More information about the Mercurial-devel mailing list