Show More
@@ -271,7 +271,7 b' def changelog(web, req, tmpl, shortlog=F' | |||
|
271 | 271 | files = webutil.listfilediffs(tmpl, ctx.files(), n, web.maxfiles) |
|
272 | 272 | |
|
273 | 273 | curcount += 1 |
|
274 | if curcount > revcount: | |
|
274 | if curcount > revcount + 1: | |
|
275 | 275 | break |
|
276 | 276 | yield {"parity": parity.next(), |
|
277 | 277 | "author": ctx.user(), |
@@ -309,11 +309,16 b' def changelog(web, req, tmpl, shortlog=F' | |||
|
309 | 309 | |
|
310 | 310 | entries = list(changelist()) |
|
311 | 311 | latestentry = entries[:1] |
|
312 | if len(entries) > revcount: | |
|
313 | nextentry = entries[-1:] | |
|
314 | entries = entries[:-1] | |
|
315 | else: | |
|
316 | nextentry = [] | |
|
312 | 317 | |
|
313 | 318 | return tmpl(shortlog and 'shortlog' or 'changelog', changenav=changenav, |
|
314 | 319 | node=ctx.hex(), rev=pos, changesets=count, |
|
315 | 320 | entries=entries, |
|
316 | latestentry=latestentry, | |
|
321 | latestentry=latestentry, nextentry=nextentry, | |
|
317 | 322 | archives=web.archivelist("tip"), revcount=revcount, |
|
318 | 323 | morevars=morevars, lessvars=lessvars, query=query) |
|
319 | 324 |
General Comments 0
You need to be logged in to leave comments.
Login now