Mercurial > hg-stable
changeset 35035:e2fc6cec0eff
templatekw: move loadkeyword() to bottom
loadkeyword() isn't a template keyword function.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 21 Oct 2017 17:31:13 +0900 |
parents | 29e6513856ee |
children | 625d5ebce066 |
files | mercurial/templatekw.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templatekw.py Sat Oct 21 17:05:04 2017 +0900 +++ b/mercurial/templatekw.py Sat Oct 21 17:31:13 2017 +0900 @@ -860,12 +860,6 @@ """List of strings. Any tags associated with the changeset.""" return shownames('tags', **args) -def loadkeyword(ui, extname, registrarobj): - """Load template keyword from specified registrarobj - """ - for name, func in registrarobj._table.iteritems(): - keywords[name] = func - @templatekeyword('termwidth') def showtermwidth(repo, ctx, templ, **args): """Integer. The width of the current terminal.""" @@ -891,5 +885,11 @@ return showlist('instability', args['ctx'].instabilities(), args, plural='instabilities') +def loadkeyword(ui, extname, registrarobj): + """Load template keyword from specified registrarobj + """ + for name, func in registrarobj._table.iteritems(): + keywords[name] = func + # tell hggettext to extract docstrings from these functions: i18nfunctions = keywords.values()