# HG changeset patch # User Martin von Zweigbergk # Date 2018-07-06 23:45:44 # Node ID 91618801d5c3fb1b9deed6c3dbf60e953b48ab65 # Parent 1c93e0237a24dca045407fc603d08b194b591685 context: raise ProgrammingError on repo['my-tag'] We had an internal extension that I had failed to migrate off of the deprecated API and its "'my-tag' in repo" check just started returning False. It took a while to figure out that that was what was happening. This patch would have helped. Differential Revision: https://phab.mercurial-scm.org/D3895 diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -432,6 +432,10 @@ class changectx(basectx): 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):