Show More
@@ -836,15 +836,11 def filelog(web, req, tmpl): | |||||
836 | end = min(count, start + revcount) # last rev on this page |
|
836 | end = min(count, start + revcount) # last rev on this page | |
837 | parity = paritygen(web.stripecount, offset=start - end) |
|
837 | parity = paritygen(web.stripecount, offset=start - end) | |
838 |
|
838 | |||
839 |
def entries( |
|
839 | def entries(): | |
840 | l = [] |
|
840 | l = [] | |
841 |
|
841 | |||
842 | repo = web.repo |
|
842 | repo = web.repo | |
843 | revs = repo.changelog.revs(start, end - 1) |
|
843 | revs = repo.changelog.revs(start, end - 1) | |
844 | if latestonly: |
|
|||
845 | for r in revs: |
|
|||
846 | pass |
|
|||
847 | revs = (r,) |
|
|||
848 | for i in revs: |
|
844 | for i in revs: | |
849 | iterfctx = fctx.filectx(i) |
|
845 | iterfctx = fctx.filectx(i) | |
850 |
|
846 | |||
@@ -868,11 +864,14 def filelog(web, req, tmpl): | |||||
868 | for e in reversed(l): |
|
864 | for e in reversed(l): | |
869 | yield e |
|
865 | yield e | |
870 |
|
866 | |||
|
867 | entries = list(entries()) | |||
|
868 | latestentry = entries[:1] | |||
|
869 | ||||
871 | revnav = webutil.filerevnav(web.repo, fctx.path()) |
|
870 | revnav = webutil.filerevnav(web.repo, fctx.path()) | |
872 | nav = revnav.gen(end - 1, revcount, count) |
|
871 | nav = revnav.gen(end - 1, revcount, count) | |
873 | return tmpl("filelog", file=f, node=fctx.hex(), nav=nav, |
|
872 | return tmpl("filelog", file=f, node=fctx.hex(), nav=nav, | |
874 |
entries= |
|
873 | entries=entries, | |
875 |
latestentry=la |
|
874 | latestentry=latestentry, | |
876 | revcount=revcount, morevars=morevars, lessvars=lessvars) |
|
875 | revcount=revcount, morevars=morevars, lessvars=lessvars) | |
877 |
|
876 | |||
878 | def archive(web, req, tmpl): |
|
877 | def archive(web, req, tmpl): |
General Comments 0
You need to be logged in to leave comments.
Login now