##// END OF EJS Templates
hgweb: load revcount + 1 entries to fill nextentry in log page (issue5972)...
Yuya Nishihara -
r39660:ede3bf31 4.7.1 stable
parent child Browse files
Show More
@@ -394,12 +394,12 b' def changelog(web, shortlog=False):'
394 ctx = web.repo['tip']
394 ctx = web.repo['tip']
395 symrev = 'tip'
395 symrev = 'tip'
396
396
397 def changelist():
397 def changelist(maxcount):
398 revs = []
398 revs = []
399 if pos != -1:
399 if pos != -1:
400 revs = web.repo.changelog.revs(pos, 0)
400 revs = web.repo.changelog.revs(pos, 0)
401
401
402 for entry in webutil.changelistentries(web, revs, revcount, parity):
402 for entry in webutil.changelistentries(web, revs, maxcount, parity):
403 yield entry
403 yield entry
404
404
405 if shortlog:
405 if shortlog:
@@ -426,7 +426,7 b' def changelog(web, shortlog=False):'
426
426
427 changenav = webutil.revnav(web.repo).gen(pos, revcount, count)
427 changenav = webutil.revnav(web.repo).gen(pos, revcount, count)
428
428
429 entries = list(changelist())
429 entries = list(changelist(revcount + 1))
430 latestentry = entries[:1]
430 latestentry = entries[:1]
431 if len(entries) > revcount:
431 if len(entries) > revcount:
432 nextentry = entries[-1:]
432 nextentry = entries[-1:]
General Comments 0
You need to be logged in to leave comments. Login now