Mercurial > hg
comparison mercurial/debugcommands.py @ 50525:1a4f54574e3d
stabletailgraph: clarify naiveness of current implementation
Both the naive and the actual versions of the algorithms are going to co-exist
for the tests. This makes is clearer that this one is naive.
author | pacien <pacien.trangirard@pacien.net> |
---|---|
date | Fri, 21 Apr 2023 14:32:58 +0200 |
parents | 1b73868d17cf |
children | 8fb3e942473a |
comparison
equal
deleted
inserted
replaced
50524:58adcabc295f | 50525:1a4f54574e3d |
---|---|
3669 """display the stable-tail sort of the ancestors of a given node""" | 3669 """display the stable-tail sort of the ancestors of a given node""" |
3670 rev = logcmdutil.revsingle(repo, revspec).rev() | 3670 rev = logcmdutil.revsingle(repo, revspec).rev() |
3671 cl = repo.changelog | 3671 cl = repo.changelog |
3672 | 3672 |
3673 displayer = logcmdutil.maketemplater(ui, repo, template) | 3673 displayer = logcmdutil.maketemplater(ui, repo, template) |
3674 sorted_revs = stabletailsort._stable_tail_sort(cl, rev) | 3674 sorted_revs = stabletailsort._stable_tail_sort_naive(cl, rev) |
3675 for ancestor_rev in sorted_revs: | 3675 for ancestor_rev in sorted_revs: |
3676 displayer.show(repo[ancestor_rev]) | 3676 displayer.show(repo[ancestor_rev]) |
3677 | 3677 |
3678 | 3678 |
3679 @command( | 3679 @command( |