diff 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
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]