Show More
@@ -860,12 +860,6 b' def showtags(**args):' | |||||
860 | """List of strings. Any tags associated with the changeset.""" |
|
860 | """List of strings. Any tags associated with the changeset.""" | |
861 | return shownames('tags', **args) |
|
861 | return shownames('tags', **args) | |
862 |
|
862 | |||
863 | def loadkeyword(ui, extname, registrarobj): |
|
|||
864 | """Load template keyword from specified registrarobj |
|
|||
865 | """ |
|
|||
866 | for name, func in registrarobj._table.iteritems(): |
|
|||
867 | keywords[name] = func |
|
|||
868 |
|
||||
869 | @templatekeyword('termwidth') |
|
863 | @templatekeyword('termwidth') | |
870 | def showtermwidth(repo, ctx, templ, **args): |
|
864 | def showtermwidth(repo, ctx, templ, **args): | |
871 | """Integer. The width of the current terminal.""" |
|
865 | """Integer. The width of the current terminal.""" | |
@@ -891,5 +885,11 b' def showinstabilities(**args):' | |||||
891 | return showlist('instability', args['ctx'].instabilities(), args, |
|
885 | return showlist('instability', args['ctx'].instabilities(), args, | |
892 | plural='instabilities') |
|
886 | plural='instabilities') | |
893 |
|
887 | |||
|
888 | def loadkeyword(ui, extname, registrarobj): | |||
|
889 | """Load template keyword from specified registrarobj | |||
|
890 | """ | |||
|
891 | for name, func in registrarobj._table.iteritems(): | |||
|
892 | keywords[name] = func | |||
|
893 | ||||
894 | # tell hggettext to extract docstrings from these functions: |
|
894 | # tell hggettext to extract docstrings from these functions: | |
895 | i18nfunctions = keywords.values() |
|
895 | i18nfunctions = keywords.values() |
General Comments 0
You need to be logged in to leave comments.
Login now