diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -204,7 +204,7 @@ def changelog(web, req, tmpl, shortlog=F 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]