Mercurial > hg-stable
changeset 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 | 3ac1735a2265 |
children | a96565abbd59 |
files | mercurial/hgweb/webcommands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Thu Jul 25 02:44:27 2013 -0500 +++ b/mercurial/hgweb/webcommands.py Thu Jul 25 15:27:41 2013 +0400 @@ -204,7 +204,7 @@ if pos != -1: revs = web.repo.changelog.revs(pos, 0) if latestonly: - revs = (next(revs),) + revs = (revs.next(),) curcount = 0 for i in revs: ctx = web.repo[i]