comparison mercurial/hgweb/webcommands.py @ 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 7124f984dc8d
children ebc0fa067c07
comparison
equal deleted inserted replaced
18028:5dbefa846903 18029:109a6a9dcca8
392 bookmarks=webutil.nodebookmarksdict(web.repo, node), 392 bookmarks=webutil.nodebookmarksdict(web.repo, node),
393 inbranch=webutil.nodeinbranch(web.repo, ctx), 393 inbranch=webutil.nodeinbranch(web.repo, ctx),
394 branches=webutil.nodebranchdict(web.repo, ctx)) 394 branches=webutil.nodebranchdict(web.repo, ctx))
395 395
396 def tags(web, req, tmpl): 396 def tags(web, req, tmpl):
397 i = reversed(web.repo.tagslist()) 397 i = list(reversed(web.repo.tagslist()))
398 parity = paritygen(web.stripecount) 398 parity = paritygen(web.stripecount)
399 399
400 def entries(notip=False, limit=0, **map): 400 def entries(notip=False, limit=0, **map):
401 count = 0 401 count = 0
402 for k, n in i: 402 for k, n in i: