Patchwork D3895: context: raise ProgrammingError on repo['my-tag']

login
register
mail settings
Submitter phabricator
Date July 7, 2018, 2:45 a.m.
Message ID <b4683e707f78c6864ebe2278e78c90e2@localhost.localdomain>
Download mbox | patch
Permalink /patch/32675/
State Not Applicable
Headers show

Comments

phabricator - July 7, 2018, 2:45 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG91618801d5c3: context: raise ProgrammingError on repo[&#039;my-tag&#039;] (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3895?vs=9466&id=9467

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

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -432,6 +432,10 @@ 
                     raise
                 except (TypeError, LookupError):
                     pass
+            else:
+                raise error.ProgrammingError(
+                        "unsupported changeid '%s' of type %s" %
+                        (changeid, type(changeid)))
 
             # lookup failed
         except (error.FilteredIndexError, error.FilteredLookupError):