From patchwork Fri Aug 9 18:57:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [13,of,20] hgweb: remove first entry from the list for ajax log From: Alexander Plavin X-Patchwork-Id: 2119 Message-Id: <015d43fca74b12c5c79c.1376074658@debian-alexander.dolgopa> To: mercurial-devel@selenic.com Date: Fri, 09 Aug 2013 22:57:38 +0400 # HG changeset patch # User Alexander Plavin # Date 1376074124 -14400 # Fri Aug 09 22:48:44 2013 +0400 # Node ID 015d43fca74b12c5c79ca14683d375dc9675fdd2 # Parent d29091e49e209d58302e2835a3cdf63b6df7f8f2 hgweb: remove first entry from the list for ajax log This is needed because ajax requests next page starting with the last revision from the previous one. diff -r d29091e49e20 -r 015d43fca74b mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Fri Aug 09 19:13:34 2013 +0400 +++ b/mercurial/hgweb/webcommands.py Fri Aug 09 22:48:44 2013 +0400 @@ -320,6 +320,7 @@ template = shortlog and 'shortlog' or 'changelog' if 'ajax' in req.form: template += 'ajax' + entries = entries[1:] return tmpl(template, changenav=changenav, node=ctx.hex(), rev=pos, changesets=count,