comparison mercurial/registrar.py @ 37227:9bcf096a2da2

templatefilters: declare input type as date where appropriate I'm not sure if the templateutil.date type can be a thing. Currently it's just a constant.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 18 Mar 2018 16:12:44 +0900
parents 54355c243042
children dfc51a482031
comparison
equal deleted inserted replaced
37226:920589f52be9 37227:9bcf096a2da2
331 pass 331 pass
332 332
333 The first string argument is used also in online help. 333 The first string argument is used also in online help.
334 334
335 Optional argument 'intype' defines the type of the input argument, 335 Optional argument 'intype' defines the type of the input argument,
336 which should be (bytes, int, or None for any.) 336 which should be (bytes, int, templateutil.date, or None for any.)
337 337
338 'templatefilter' instance in example above can be used to 338 'templatefilter' instance in example above can be used to
339 decorate multiple functions. 339 decorate multiple functions.
340 340
341 Decorated functions are registered automatically at loading 341 Decorated functions are registered automatically at loading