diff -r a04baf9c063b -r 6b3b958daf03 mercurial/templatefilters.py --- a/mercurial/templatefilters.py Sun Feb 14 20:43:30 2016 +0900 +++ b/mercurial/templatefilters.py Wed Mar 30 02:10:44 2016 +0900 @@ -415,5 +415,11 @@ text = regexp.sub(format, text) return text +def loadfilter(ui, extname, registrarobj): + """Load template filter from specified registrarobj + """ + for name, func in registrarobj._table.iteritems(): + filters[name] = func + # tell hggettext to extract docstrings from these functions: i18nfunctions = filters.values()