##// END OF EJS Templates
templater: introduce unified filter syntax for unary functions...
Yuya Nishihara -
r26105:d67341f5 default
parent child Browse files
Show More
@@ -252,6 +252,9 b' def buildfilter(exp, context):'
252 if n in context._filters:
252 if n in context._filters:
253 filt = context._filters[n]
253 filt = context._filters[n]
254 return (runfilter, (func, data, filt))
254 return (runfilter, (func, data, filt))
255 if n in funcs:
256 f = funcs[n]
257 return (f, [(func, data)])
255 raise error.ParseError(_("unknown function '%s'") % n)
258 raise error.ParseError(_("unknown function '%s'") % n)
256
259
257 def runfilter(context, mapping, data):
260 def runfilter(context, mapping, data):
@@ -3117,6 +3117,8 b' Test shortest(node) function:'
3117 e777603221
3117 e777603221
3118 bcc7ff960b
3118 bcc7ff960b
3119 f7769ec2ab
3119 f7769ec2ab
3120 $ hg log --template '{node|shortest}\n' -l1
3121 e777
3120
3122
3121 Test pad function
3123 Test pad function
3122
3124
General Comments 0
You need to be logged in to leave comments. Login now