Show More
@@ -974,26 +974,20 b' def filelog(web, req, tmpl):' | |||||
974 | count = fctx.filerev() + 1 |
|
974 | count = fctx.filerev() + 1 | |
975 | start = max(0, fctx.filerev() - revcount + 1) # first rev on this page |
|
975 | start = max(0, fctx.filerev() - revcount + 1) # first rev on this page | |
976 | end = min(count, start + revcount) # last rev on this page |
|
976 | end = min(count, start + revcount) # last rev on this page | |
977 | parity = paritygen(web.stripecount, offset=start - end) |
|
977 | parity = paritygen(web.stripecount, offset=start - end + 1) | |
978 |
|
||||
979 | def entries(): |
|
|||
980 | l = [] |
|
|||
981 |
|
978 | |||
982 |
|
|
979 | repo = web.repo | |
983 |
|
|
980 | revs = fctx.filelog().revs(start, end - 1) | |
984 | for i in revs: |
|
981 | entries = [] | |
|
982 | for i in reversed(revs): | |||
985 |
|
|
983 | iterfctx = fctx.filectx(i) | |
986 |
|
984 | entries.append(dict( | ||
987 | l.append(dict( |
|
|||
988 |
|
|
985 | parity=next(parity), | |
989 |
|
|
986 | filerev=i, | |
990 |
|
|
987 | file=f, | |
991 |
|
|
988 | rename=webutil.renamelink(iterfctx), | |
992 |
|
|
989 | **webutil.commonentry(repo, iterfctx))) | |
993 | for e in reversed(l): |
|
|||
994 | yield e |
|
|||
995 |
|
990 | |||
996 | entries = list(entries()) |
|
|||
997 | latestentry = entries[:1] |
|
991 | latestentry = entries[:1] | |
998 |
|
992 | |||
999 | revnav = webutil.filerevnav(web.repo, fctx.path()) |
|
993 | revnav = webutil.filerevnav(web.repo, fctx.path()) |
General Comments 0
You need to be logged in to leave comments.
Login now