comparison mercurial/help.py @ 36922:521f6c7e1756

templater: split template functions to new module It has grown enough to be a dedicated module.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 08 Mar 2018 22:23:02 +0900
parents 1fa35ca345a5
children 979c8ce9022d
comparison
equal deleted inserted replaced
36921:32f9b7e3f056 36922:521f6c7e1756
24 fileset, 24 fileset,
25 minirst, 25 minirst,
26 pycompat, 26 pycompat,
27 revset, 27 revset,
28 templatefilters, 28 templatefilters,
29 templatefuncs,
29 templatekw, 30 templatekw,
30 templater,
31 util, 31 util,
32 ) 32 )
33 from .hgweb import ( 33 from .hgweb import (
34 webcommands, 34 webcommands,
35 ) 35 )
307 addtopicsymbols('merge-tools', '.. internaltoolsmarker', 307 addtopicsymbols('merge-tools', '.. internaltoolsmarker',
308 filemerge.internalsdoc) 308 filemerge.internalsdoc)
309 addtopicsymbols('revisions', '.. predicatesmarker', revset.symbols) 309 addtopicsymbols('revisions', '.. predicatesmarker', revset.symbols)
310 addtopicsymbols('templates', '.. keywordsmarker', templatekw.keywords) 310 addtopicsymbols('templates', '.. keywordsmarker', templatekw.keywords)
311 addtopicsymbols('templates', '.. filtersmarker', templatefilters.filters) 311 addtopicsymbols('templates', '.. filtersmarker', templatefilters.filters)
312 addtopicsymbols('templates', '.. functionsmarker', templater.funcs) 312 addtopicsymbols('templates', '.. functionsmarker', templatefuncs.funcs)
313 addtopicsymbols('hgweb', '.. webcommandsmarker', webcommands.commands, 313 addtopicsymbols('hgweb', '.. webcommandsmarker', webcommands.commands,
314 dedent=True) 314 dedent=True)
315 315
316 def help_(ui, commands, name, unknowncmd=False, full=True, subtopic=None, 316 def help_(ui, commands, name, unknowncmd=False, full=True, subtopic=None,
317 **opts): 317 **opts):