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

login
register
mail settings
Submitter phabricator
Date April 6, 2018, 4:39 p.m.
Message ID <8ff8e589094792c3d18fc6d36150f03d@localhost.localdomain>
Download mbox | patch
Permalink /patch/30438/
State Not Applicable
Headers show

Comments

phabricator - April 6, 2018, 4:39 p.m.
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




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

Patch

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: