diff 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
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Sat Oct 13 05:03:50 2018 -0700
+++ b/mercurial/hgweb/webcommands.py	Fri Oct 12 17:57:36 2018 +0200
@@ -1407,7 +1407,8 @@
     topicname = web.req.qsparams.get('node')
     if not topicname:
         def topics(context):
-            for entries, summary, _doc in helpmod.helptable:
+            for h in helpmod.helptable:
+                entries, summary, _doc = h[0:3]
                 yield {'topic': entries[0], 'summary': summary}
 
         early, other = [], []