diff doc/gendoc.py @ 6654:2713e42dcf4e

help: helptable is an ordered collection The helptable is used for helptopics listed in the manual page, so the order of topics should not be random. Convert it from a dictionary into a tuple of tuples. Also reorder helptable entries to keep previous manual page order.
author Johannes Stezenbach <js@sig21.net>
date Tue, 03 Jun 2008 21:03:51 +0200
parents 59e087f99920
children 78341ea65d16
line wrap: on
line diff
--- a/doc/gendoc.py	Tue Jun 03 20:56:54 2008 +0200
+++ b/doc/gendoc.py	Tue Jun 03 21:03:51 2008 +0200
@@ -92,11 +92,10 @@
             ui.write(_("    aliases: %s\n\n") % " ".join(d['aliases']))
 
     # print topics
-    for t in helptable:
+    for t, doc in helptable:
         l = t.split("|")
         section = l[-1]
         underlined(_(section).upper())
-        doc = helptable[t]
         if callable(doc):
             doc = doc()
         ui.write(_(doc))