Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templatefilters.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 | 7a6a8a069aac |
children | e2c413bde8a5 |
line wrap: on
line diff
--- a/mercurial/templatefilters.py Fri May 13 11:04:51 2011 -0500 +++ b/mercurial/templatefilters.py Fri May 13 12:57:27 2011 -0500 @@ -6,7 +6,7 @@ # GNU General Public License version 2 or any later version. import cgi, re, os, time, urllib -import encoding, node, util, help +import encoding, node, util def addbreaks(text): """:addbreaks: Any text. Add an XHTML "<br />" tag before the end of @@ -358,8 +358,5 @@ "xmlescape": xmlescape, } -def makedoc(topic, doc): - return help.makeitemsdoc(topic, doc, '.. filtersmarker', filters) - # tell hggettext to extract docstrings from these functions: i18nfunctions = filters.values()