changeset 17637:02d2166ef5f1

templater: pull in functions defined in templatefilters
author Matt Mackall <mpm@selenic.com>
date Mon, 24 Sep 2012 15:28:04 -0500
parents ce18dbcd91c8
children e2711975be00
files mercurial/templater.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templater.py	Mon Sep 24 15:26:56 2012 -0500
+++ b/mercurial/templater.py	Mon Sep 24 15:28:04 2012 -0500
@@ -192,6 +192,9 @@
     if n in funcs:
         f = funcs[n]
         return (f, args)
+    if n in templatefilters.funcs:
+        f = templatefilters.funcs[n]
+        return (f, args)
     if n in context._filters:
         if len(args) != 1:
             raise error.ParseError(_("filter %s expects one argument") % n)