diff -r 58adcabc295f -r 1a4f54574e3d mercurial/debugcommands.py --- a/mercurial/debugcommands.py Fri May 19 14:49:50 2023 +0200 +++ b/mercurial/debugcommands.py Fri Apr 21 14:32:58 2023 +0200 @@ -3671,7 +3671,7 @@ cl = repo.changelog displayer = logcmdutil.maketemplater(ui, repo, template) - sorted_revs = stabletailsort._stable_tail_sort(cl, rev) + sorted_revs = stabletailsort._stable_tail_sort_naive(cl, rev) for ancestor_rev in sorted_revs: displayer.show(repo[ancestor_rev])