mercurial/hgweb/webcommands.py
changeset 40292 9c6473d2038b
parent 40248 b24c23f7c1f9
child 40295 fa88170c10bb
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():