diff -r b08af8f0ac01 -r fafd9a1284cf mercurial/templater.py --- a/mercurial/templater.py Wed Oct 01 20:26:33 2014 -0400 +++ b/mercurial/templater.py Mon Feb 02 22:21:07 2015 +0900 @@ -393,7 +393,7 @@ def query(expr): m = revsetmod.match(repo.ui, expr) - return m(repo, revsetmod.spanset(repo)) + return m(repo) if len(args) > 1: formatargs = list([a[0](context, mapping, a[1]) for a in args[1:]])