diff -r bfe9ed85f27c -r 5eccebe23942 mercurial/templater.py --- a/mercurial/templater.py Sat Jun 20 19:59:26 2015 -0400 +++ b/mercurial/templater.py Sat Jun 20 23:13:34 2015 +0900 @@ -417,7 +417,7 @@ # i18n: "revset" is a keyword raise error.ParseError(_("revset expects one or more arguments")) - raw = args[0][1] + raw = stringify(args[0][0](context, mapping, args[0][1])) ctx = mapping['ctx'] repo = ctx.repo()