136 ui.write(minirst.subsubsection(_('Commands'))) |
136 ui.write(minirst.subsubsection(_('Commands'))) |
137 commandprinter(ui, cmdtable, minirst.subsubsubsection) |
137 commandprinter(ui, cmdtable, minirst.subsubsubsection) |
138 |
138 |
139 def showtopic(ui, topic): |
139 def showtopic(ui, topic): |
140 extrahelptable = [ |
140 extrahelptable = [ |
141 (["common"], '', loaddoc('common')), |
141 (["common"], '', loaddoc('common'), help.TOPIC_CATEGORY_MISC), |
142 (["hg.1"], '', loaddoc('hg.1')), |
142 (["hg.1"], '', loaddoc('hg.1'), help.TOPIC_CATEGORY_CONFIG), |
143 (["hg-ssh.8"], '', loaddoc('hg-ssh.8')), |
143 (["hg-ssh.8"], '', loaddoc('hg-ssh.8'), help.TOPIC_CATEGORY_CONFIG), |
144 (["hgignore.5"], '', loaddoc('hgignore.5')), |
144 (["hgignore.5"], '', loaddoc('hgignore.5'), help.TOPIC_CATEGORY_CONFIG), |
145 (["hgrc.5"], '', loaddoc('hgrc.5')), |
145 (["hgrc.5"], '', loaddoc('hgrc.5'), help.TOPIC_CATEGORY_CONFIG), |
146 (["hgignore.5.gendoc"], '', loaddoc('hgignore')), |
146 (["hgignore.5.gendoc"], '', loaddoc('hgignore'), |
147 (["hgrc.5.gendoc"], '', loaddoc('config')), |
147 help.TOPIC_CATEGORY_CONFIG), |
|
148 (["hgrc.5.gendoc"], '', loaddoc('config'), help.TOPIC_CATEGORY_CONFIG), |
148 ] |
149 ] |
149 helpprinter(ui, helptable + extrahelptable, None, include=[topic]) |
150 helpprinter(ui, helptable + extrahelptable, None, include=[topic]) |
150 |
151 |
151 def helpprinter(ui, helptable, sectionfunc, include=[], exclude=[]): |
152 def helpprinter(ui, helptable, sectionfunc, include=[], exclude=[]): |
152 for h in helptable: |
153 for h in helptable: |