changeset 18029:109a6a9dcca8 stable

hgweb: fix iterator reuse in atom feed generation
author Matt Mackall <mpm@selenic.com>
date Wed, 05 Dec 2012 15:38:18 -0600
parents 5dbefa846903
children ebc0fa067c07
files mercurial/hgweb/webcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):