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