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):