comparison mercurial/templater.py @ 25580:a69983942fb4

merge with stable
author Matt Mackall <mpm@selenic.com>
date Mon, 15 Jun 2015 13:31:22 -0500
parents 576d6c74784b 9452112c8eb0
children a7dd6692e5cb
comparison
equal deleted inserted replaced
25579:b76410eed482 25580:a69983942fb4
264 # i18n: "diff" is a keyword 264 # i18n: "diff" is a keyword
265 raise error.ParseError(_("diff expects one, two or no arguments")) 265 raise error.ParseError(_("diff expects one, two or no arguments"))
266 266
267 def getpatterns(i): 267 def getpatterns(i):
268 if i < len(args): 268 if i < len(args):
269 s = args[i][1].strip() 269 s = stringify(args[i][0](context, mapping, args[i][1])).strip()
270 if s: 270 if s:
271 return [s] 271 return [s]
272 return [] 272 return []
273 273
274 ctx = mapping['ctx'] 274 ctx = mapping['ctx']