# HG changeset patch # User Yuya Nishihara # Date 2015-09-26 03:39:13 # Node ID a2291c9c85a1d7f56f419cf446101ca0d375fa52 # Parent 882b170ae6162d60e03d60009286d46fdbdb442f templatekw: remove dockeywords hack Now all template keywords are defined as real functions. diff --git a/mercurial/help.py b/mercurial/help.py --- a/mercurial/help.py +++ b/mercurial/help.py @@ -220,7 +220,7 @@ addtopicsymbols('filesets', '.. predicat addtopicsymbols('merge-tools', '.. internaltoolsmarker', filemerge.internalsdoc) addtopicsymbols('revsets', '.. predicatesmarker', revset.symbols) -addtopicsymbols('templates', '.. keywordsmarker', templatekw.dockeywords) +addtopicsymbols('templates', '.. keywordsmarker', templatekw.keywords) addtopicsymbols('templates', '.. filtersmarker', templatefilters.filters) addtopicsymbols('templates', '.. functionsmarker', templater.funcs) addtopicsymbols('hgweb', '.. webcommandsmarker', webcommands.commands, diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py --- a/mercurial/templatekw.py +++ b/mercurial/templatekw.py @@ -505,10 +505,5 @@ keywords = { 'tags': showtags, } -dockeywords = { -} -dockeywords.update(keywords) -del dockeywords['branches'] - # tell hggettext to extract docstrings from these functions: -i18nfunctions = dockeywords.values() +i18nfunctions = keywords.values()