mercurial/templater.py
changeset 20860 81d6dc8c3c63
parent 20670 0084fcd5d7e2
parent 20857 6eb55310fcbc
child 21540 d8fb835376d1
equal deleted inserted replaced
20856:8a6a86c9a5b5 20860:81d6dc8c3c63
   210     if n in context._filters:
   210     if n in context._filters:
   211         if len(args) != 1:
   211         if len(args) != 1:
   212             raise error.ParseError(_("filter %s expects one argument") % n)
   212             raise error.ParseError(_("filter %s expects one argument") % n)
   213         f = context._filters[n]
   213         f = context._filters[n]
   214         return (runfilter, (args[0][0], args[0][1], f))
   214         return (runfilter, (args[0][0], args[0][1], f))
       
   215     raise error.ParseError(_("unknown function '%s'") % n)
   215 
   216 
   216 def date(context, mapping, args):
   217 def date(context, mapping, args):
   217     if not (1 <= len(args) <= 2):
   218     if not (1 <= len(args) <= 2):
   218         raise error.ParseError(_("date expects one or two arguments"))
   219         raise error.ParseError(_("date expects one or two arguments"))
   219 
   220