Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/webcommands.py @ 19499:81318ca090a2 stable
hgweb: replace next(revs) to revs.next() to fix compatibility with Python 2.5-
author | Alexander Plavin <me@aplavin.ru> |
---|---|
date | Thu, 25 Jul 2013 15:27:41 +0400 |
parents | e111d5e6bbbd |
children | 9a020b354d93 5cbf413ce658 |
comparison
equal
deleted
inserted
replaced
19498:3ac1735a2265 | 19499:81318ca090a2 |
---|---|
202 def changelist(latestonly, **map): | 202 def changelist(latestonly, **map): |
203 revs = [] | 203 revs = [] |
204 if pos != -1: | 204 if pos != -1: |
205 revs = web.repo.changelog.revs(pos, 0) | 205 revs = web.repo.changelog.revs(pos, 0) |
206 if latestonly: | 206 if latestonly: |
207 revs = (next(revs),) | 207 revs = (revs.next(),) |
208 curcount = 0 | 208 curcount = 0 |
209 for i in revs: | 209 for i in revs: |
210 ctx = web.repo[i] | 210 ctx = web.repo[i] |
211 n = ctx.node() | 211 n = ctx.node() |
212 showtags = webutil.showtag(web.repo, tmpl, 'changelogtag', n) | 212 showtags = webutil.showtag(web.repo, tmpl, 'changelogtag', n) |