hgweb: replace next(revs) to revs.next() to fix compatibility with Python 2.5- stable
authorAlexander Plavin <me@aplavin.ru>
Thu, 25 Jul 2013 15:27:41 +0400
branchstable
changeset 19499 81318ca090a2
parent 19498 3ac1735a2265
child 19500 a96565abbd59
hgweb: replace next(revs) to revs.next() to fix compatibility with Python 2.5-
mercurial/hgweb/webcommands.py
--- 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]