Show More
@@ -202,7 +202,7 b' def changelog(web, req, tmpl, shortlog=F' | |||||
202 | showtags = webutil.showtag(web.repo, tmpl, 'changelogtag', n) |
|
202 | showtags = webutil.showtag(web.repo, tmpl, 'changelogtag', n) | |
203 | files = webutil.listfilediffs(tmpl, ctx.files(), n, web.maxfiles) |
|
203 | files = webutil.listfilediffs(tmpl, ctx.files(), n, web.maxfiles) | |
204 |
|
204 | |||
205 |
l. |
|
205 | l.append({"parity": parity.next(), | |
206 |
|
|
206 | "author": ctx.user(), | |
207 |
|
|
207 | "parent": webutil.parents(ctx, i - 1), | |
208 |
|
|
208 | "child": webutil.children(ctx, i + 1), | |
@@ -217,11 +217,10 b' def changelog(web, req, tmpl, shortlog=F' | |||||
217 |
|
|
217 | "inbranch": webutil.nodeinbranch(web.repo, ctx), | |
218 |
|
|
218 | "branches": webutil.nodebranchdict(web.repo, ctx) | |
219 |
|
|
219 | }) | |
|
220 | if limit > 0: | |||
|
221 | l = l[-limit:] | |||
220 |
|
222 | |||
221 | if limit > 0: |
|
223 | for e in reversed(l): | |
222 | l = l[:limit] |
|
|||
223 |
|
||||
224 | for e in l: |
|
|||
225 | yield e |
|
224 | yield e | |
226 |
|
225 | |||
227 | revcount = shortlog and web.maxshortchanges or web.maxchanges |
|
226 | revcount = shortlog and web.maxshortchanges or web.maxchanges | |
@@ -520,7 +519,7 b' def summary(web, req, tmpl):' | |||||
520 | n = ctx.node() |
|
519 | n = ctx.node() | |
521 | hn = hex(n) |
|
520 | hn = hex(n) | |
522 |
|
521 | |||
523 |
l. |
|
522 | l.append(tmpl( | |
524 | 'shortlogentry', |
|
523 | 'shortlogentry', | |
525 | parity=parity.next(), |
|
524 | parity=parity.next(), | |
526 | author=ctx.user(), |
|
525 | author=ctx.user(), | |
@@ -533,6 +532,7 b' def summary(web, req, tmpl):' | |||||
533 | inbranch=webutil.nodeinbranch(web.repo, ctx), |
|
532 | inbranch=webutil.nodeinbranch(web.repo, ctx), | |
534 | branches=webutil.nodebranchdict(web.repo, ctx))) |
|
533 | branches=webutil.nodebranchdict(web.repo, ctx))) | |
535 |
|
534 | |||
|
535 | l.reverse() | |||
536 | yield l |
|
536 | yield l | |
537 |
|
537 | |||
538 | tip = web.repo['tip'] |
|
538 | tip = web.repo['tip'] | |
@@ -748,7 +748,7 b' def filelog(web, req, tmpl):' | |||||
748 | for i in xrange(start, end): |
|
748 | for i in xrange(start, end): | |
749 | iterfctx = fctx.filectx(i) |
|
749 | iterfctx = fctx.filectx(i) | |
750 |
|
750 | |||
751 |
l. |
|
751 | l.append({"parity": parity.next(), | |
752 |
|
|
752 | "filerev": i, | |
753 |
|
|
753 | "file": f, | |
754 |
|
|
754 | "node": iterfctx.hex(), | |
@@ -766,9 +766,9 b' def filelog(web, req, tmpl):' | |||||
766 |
|
|
766 | "branches": webutil.nodebranchdict(repo, iterfctx)}) | |
767 |
|
767 | |||
768 | if limit > 0: |
|
768 | if limit > 0: | |
769 |
l = l[: |
|
769 | l = l[-limit:] | |
770 |
|
770 | |||
771 | for e in l: |
|
771 | for e in reversed(l): | |
772 | yield e |
|
772 | yield e | |
773 |
|
773 | |||
774 | nodefunc = lambda x: fctx.filectx(fileid=x) |
|
774 | nodefunc = lambda x: fctx.filectx(fileid=x) |
General Comments 0
You need to be logged in to leave comments.
Login now