##// END OF EJS Templates
hgweb: simplify calculation of first revision in filelog command
Denis Laxalde -
r30826:923336cf default
parent child Browse files
Show More
@@ -972,7 +972,7 b' def filelog(web, req, tmpl):'
972 morevars['revcount'] = revcount * 2
972 morevars['revcount'] = revcount * 2
973
973
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, count - revcount) # 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)
978
978
General Comments 0
You need to be logged in to leave comments. Login now