comparison mercurial/help.py @ 17187:293dd81e4601

templatekw/help: document the {parents} keyword The {parents} keyword does not appear in the generated documentation for templates because it is added by `changeset_templater` (and this is because its behavior depends on `ui`, so it can't be defined as a normal template keyword; see comments in `changeset_templater._show()`). Add it to the documentation synthetically by creating a stub documentation function. Test plan: built the docs and examined the man page to verify that this keyword is now documented. I'm not sure how to test the i18n extraction part, but assume it will just work given that this patch doesn't do anything too crazy.
author epriestley <hg@yghe.net>
date Tue, 10 Jul 2012 09:11:53 -0700
parents 87882c8753d4
children f3fd9d6802b7
comparison
equal deleted inserted replaced
17186:a3da6f298592 17187:293dd81e4601
197 addtopichook(topic, add) 197 addtopichook(topic, add)
198 198
199 addtopicsymbols('filesets', '.. predicatesmarker', fileset.symbols) 199 addtopicsymbols('filesets', '.. predicatesmarker', fileset.symbols)
200 addtopicsymbols('merge-tools', '.. internaltoolsmarker', filemerge.internals) 200 addtopicsymbols('merge-tools', '.. internaltoolsmarker', filemerge.internals)
201 addtopicsymbols('revsets', '.. predicatesmarker', revset.symbols) 201 addtopicsymbols('revsets', '.. predicatesmarker', revset.symbols)
202 addtopicsymbols('templates', '.. keywordsmarker', templatekw.keywords) 202 addtopicsymbols('templates', '.. keywordsmarker', templatekw.dockeywords)
203 addtopicsymbols('templates', '.. filtersmarker', templatefilters.filters) 203 addtopicsymbols('templates', '.. filtersmarker', templatefilters.filters)