mercurial/templatefuncs.py
changeset 40568 d11e2c5b287e
parent 40189 9458dbfa7f33
child 40951 d3e688b9ef2e
--- a/mercurial/templatefuncs.py	Wed Oct 24 18:48:43 2018 +0300
+++ b/mercurial/templatefuncs.py	Sun Nov 04 20:44:26 2018 +0900
@@ -559,7 +559,6 @@
     if len(args) > 1:
         formatargs = [evalfuncarg(context, mapping, a) for a in args[1:]]
         revs = query(revsetlang.formatspec(raw, *formatargs))
-        revs = list(revs)
     else:
         cache = context.resource(mapping, 'cache')
         revsetcache = cache.setdefault("revsetcache", {})
@@ -567,7 +566,6 @@
             revs = revsetcache[raw]
         else:
             revs = query(raw)
-            revs = list(revs)
             revsetcache[raw] = revs
     return templatekw.showrevslist(context, mapping, "revision", revs)