mercurial/templater.py
changeset 17631 0b241d7a8c62
parent 17383 099c778ceb33
child 17632 523625e46760
--- a/mercurial/templater.py	Thu Sep 20 23:30:59 2012 -0400
+++ b/mercurial/templater.py	Fri Sep 21 18:54:00 2012 -0500
@@ -164,6 +164,9 @@
 def runmap(context, mapping, data):
     func, data, ctmpl = data
     d = func(context, mapping, data)
+    if util.safehasattr(d, '__call__'):
+        d = d()
+
     lm = mapping.copy()
 
     for i in d: