##// END OF EJS Templates
hgweb: restore ascending iteration on revs in filelog web command...
Denis Laxalde -
r30825:4deb7c1a default
parent child Browse files
Show More
@@ -974,12 +974,12 b' def filelog(web, req, tmpl):'
974 974 count = fctx.filerev() + 1
975 975 start = max(0, fctx.filerev() - revcount + 1) # first rev on this page
976 976 end = min(count, start + revcount) # last rev on this page
977 parity = paritygen(web.stripecount, offset=start - end + 1)
977 parity = paritygen(web.stripecount, offset=start - end)
978 978
979 979 repo = web.repo
980 980 revs = fctx.filelog().revs(start, end - 1)
981 981 entries = []
982 for i in reversed(revs):
982 for i in revs:
983 983 iterfctx = fctx.filectx(i)
984 984 entries.append(dict(
985 985 parity=next(parity),
@@ -987,6 +987,7 b' def filelog(web, req, tmpl):'
987 987 file=f,
988 988 rename=webutil.renamelink(iterfctx),
989 989 **webutil.commonentry(repo, iterfctx)))
990 entries.reverse()
990 991
991 992 latestentry = entries[:1]
992 993
General Comments 0
You need to be logged in to leave comments. Login now