diff -r f3fd9d6802b7 -r 7124f984dc8d mercurial/hgweb/webcommands.py --- 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]