Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webcommands.py @ 40292:9c6473d2038b
help: splitting the topics by category
Differential Revision: https://phab.mercurial-scm.org/D5066
author | Rodrigo Damazio <rdamazio@google.com> |
---|---|
date | Fri, 12 Oct 2018 17:57:36 +0200 |
parents | b24c23f7c1f9 |
children | fa88170c10bb |
comparison
equal
deleted
inserted
replaced
40291:170926caf44c | 40292:9c6473d2038b |
---|---|
1405 from .. import commands, help as helpmod # avoid cycle | 1405 from .. import commands, help as helpmod # avoid cycle |
1406 | 1406 |
1407 topicname = web.req.qsparams.get('node') | 1407 topicname = web.req.qsparams.get('node') |
1408 if not topicname: | 1408 if not topicname: |
1409 def topics(context): | 1409 def topics(context): |
1410 for entries, summary, _doc in helpmod.helptable: | 1410 for h in helpmod.helptable: |
1411 entries, summary, _doc = h[0:3] | |
1411 yield {'topic': entries[0], 'summary': summary} | 1412 yield {'topic': entries[0], 'summary': summary} |
1412 | 1413 |
1413 early, other = [], [] | 1414 early, other = [], [] |
1414 primary = lambda s: s.partition('|')[0] | 1415 primary = lambda s: s.partition('|')[0] |
1415 for c, e in commands.table.iteritems(): | 1416 for c, e in commands.table.iteritems(): |