diff -r f1ef512e14ab -r 460e80488cf0 mercurial/obsutil.py --- a/mercurial/obsutil.py Tue Aug 20 17:46:17 2024 -0400 +++ b/mercurial/obsutil.py Tue Aug 20 18:30:47 2024 -0400 @@ -947,7 +947,7 @@ } -def _getfilteredreason(repo, changeid, ctx): +def _getfilteredreason(repo, changeid, ctx) -> bytes: """return a human-friendly string on why a obsolete changeset is hidden""" successors = successorssets(repo, ctx.node()) fate = _getobsfate(successors) @@ -974,6 +974,8 @@ args = (changeid, firstsuccessors, remainingnumber) return filteredmsgtable[b'superseded_split_several'] % args + else: + raise error.ProgrammingError("unhandled fate: %r" % fate) def divergentsets(repo, ctx):