changeset 28695 | cc103bd0dbf9 |
parent 28687 | 29c249dfb4ef |
child 28696 | efa192203623 |
--- a/mercurial/templater.py Wed Mar 30 02:10:44 2016 +0900 +++ b/mercurial/templater.py Wed Mar 30 02:10:44 2016 +0900 @@ -1069,5 +1069,11 @@ raise RuntimeError("No hgweb templates found in %r" % paths) +def loadfunction(ui, extname, registrarobj): + """Load template function from specified registrarobj + """ + for name, func in registrarobj._table.iteritems(): + funcs[name] = func + # tell hggettext to extract docstrings from these functions: i18nfunctions = funcs.values()