diff mercurial/templatekw.py @ 14318:1f46be4689ed

help: consolidate topic hooks in help.py This removes loops like cmdutil->revset->help->extensions->cmdutil and simplifies the code.
author Matt Mackall <mpm@selenic.com>
date Fri, 13 May 2011 12:57:27 -0500
parents e4bfb9c337f3
children 2c9f5897d4b7
line wrap: on
line diff
--- a/mercurial/templatekw.py	Fri May 13 11:04:51 2011 -0500
+++ b/mercurial/templatekw.py	Fri May 13 12:57:27 2011 -0500
@@ -6,7 +6,7 @@
 # GNU General Public License version 2 or any later version.
 
 from node import hex
-import patch, util, error, help
+import patch, util, error
 
 def showlist(name, values, plural=None, **args):
     '''expand set of values.
@@ -313,8 +313,5 @@
     'tags': showtags,
 }
 
-def makedoc(topic, doc):
-    return help.makeitemsdoc(topic, doc, '.. keywordsmarker', keywords)
-
 # tell hggettext to extract docstrings from these functions:
 i18nfunctions = keywords.values()