diff --git a/mercurial/help.py b/mercurial/help.py index a3da6f298592539ebfc63855e31b6b19b670694b_bWVyY3VyaWFsL2hlbHAucHk=..293dd81e4601a97859d8c74f9c6b88da6411268e_bWVyY3VyaWFsL2hlbHAucHk= 100644 --- a/mercurial/help.py +++ b/mercurial/help.py @@ -199,5 +199,5 @@ addtopicsymbols('filesets', '.. predicatesmarker', fileset.symbols) addtopicsymbols('merge-tools', '.. internaltoolsmarker', filemerge.internals) addtopicsymbols('revsets', '.. predicatesmarker', revset.symbols) -addtopicsymbols('templates', '.. keywordsmarker', templatekw.keywords) +addtopicsymbols('templates', '.. keywordsmarker', templatekw.dockeywords) addtopicsymbols('templates', '.. filtersmarker', templatefilters.filters) diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py index a3da6f298592539ebfc63855e31b6b19b670694b_bWVyY3VyaWFsL3RlbXBsYXRla3cucHk=..293dd81e4601a97859d8c74f9c6b88da6411268e_bWVyY3VyaWFsL3RlbXBsYXRla3cucHk= 100644 --- a/mercurial/templatekw.py +++ b/mercurial/templatekw.py @@ -326,4 +326,15 @@ 'tags': showtags, } +def _showparents(**args): + """:parents: List of strings. The parents of the changeset in "rev:node" + format. If the changeset has only one "natural" parent (the predecessor + revision) nothing is shown.""" + pass + +dockeywords = { + 'parents': _showparents, +} +dockeywords.update(keywords) + # tell hggettext to extract docstrings from these functions: @@ -329,2 +340,2 @@ # tell hggettext to extract docstrings from these functions: -i18nfunctions = keywords.values() +i18nfunctions = dockeywords.values()