mercurial/templatefilters.py
changeset 28692 6b3b958daf03
parent 28213 93b5c540db69
child 28693 11f623b5668f
--- 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()