branch | stable |
changeset 17322 | 7124f984dc8d |
parent 17318 | 7ac5800dbc8f |
child 17933 | 8243dd66e0e3 |
child 18029 | 109a6a9dcca8 |
--- a/mercurial/hgweb/webcommands.py Wed Aug 01 00:18:23 2012 +0200 +++ b/mercurial/hgweb/webcommands.py Wed Aug 01 14:59:15 2012 +0200 @@ -931,8 +931,7 @@ if not topicname: def topics(**map): for entries, summary, _ in helpmod.helptable: - entries = sorted(entries, key=len) - yield {'topic': entries[-1], 'summary': summary} + yield {'topic': entries[0], 'summary': summary} early, other = [], [] primary = lambda s: s.split('|')[0]