diff -r 3e5f1fb2aec7 -r 63fd0282ad40 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Mon May 30 00:45:00 2022 +0200 +++ b/mercurial/debugcommands.py Mon May 30 16:18:12 2022 +0200 @@ -2691,9 +2691,9 @@ # local repository. n = bin(s) if len(n) != repo.nodeconstants.nodelen: - raise TypeError() + raise ValueError return n - except TypeError: + except ValueError: raise error.InputError( b'changeset references must be full hexadecimal ' b'node identifiers'