diff -r 8b5f97ab5774 -r 545a3e6650cd mercurial/context.py --- a/mercurial/context.py Tue Jul 31 10:55:14 2018 +0200 +++ b/mercurial/context.py Mon Jul 30 14:36:42 2018 -0700 @@ -411,6 +411,7 @@ self._rev = repo.changelog.rev(changeid) return except error.FilteredLookupError: + changeid = hex(changeid) # for the error message raise except LookupError: # check if it might have come from damaged dirstate