hgweb: fix iterator reuse in atom feed generation stable
authorMatt Mackall <mpm@selenic.com>
Wed, 05 Dec 2012 15:38:18 -0600
branchstable
changeset 18029 109a6a9dcca8
parent 18028 5dbefa846903
child 18030 ebc0fa067c07
hgweb: fix iterator reuse in atom feed generation
mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py	Tue Dec 04 14:35:02 2012 +0100
+++ b/mercurial/hgweb/webcommands.py	Wed Dec 05 15:38:18 2012 -0600
@@ -394,7 +394,7 @@
                 branches=webutil.nodebranchdict(web.repo, ctx))
 
 def tags(web, req, tmpl):
-    i = reversed(web.repo.tagslist())
+    i = list(reversed(web.repo.tagslist()))
     parity = paritygen(web.stripecount)
 
     def entries(notip=False, limit=0, **map):