Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/webcommands.py @ 7311:de9c87fe1620
hgweb: move another utility function into the webutil module
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Mon, 03 Nov 2008 20:31:53 +0100 |
parents | bd522d09d5e3 |
children | 5c95d7667dd1 |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Mon Nov 03 20:41:48 2008 +0100 +++ b/mercurial/hgweb/webcommands.py Mon Nov 03 20:31:53 2008 +0100 @@ -130,6 +130,7 @@ count += 1 n = ctx.node() showtags = webutil.showtag(web.repo, tmpl, 'changelogtag', n) + files = webutil.listfilediffs(tmpl, ctx.files(), n, web.maxfiles) yield tmpl('searchentry', parity=parity.next(), @@ -139,7 +140,7 @@ changelogtag=showtags, desc=ctx.description(), date=ctx.date(), - files=web.listfilediffs(tmpl, ctx.files(), n), + files=files, rev=ctx.rev(), node=hex(n), tags=webutil.nodetagsdict(web.repo, n), @@ -178,6 +179,7 @@ ctx = web.repo[i] n = ctx.node() showtags = webutil.showtag(web.repo, tmpl, 'changelogtag', n) + files = webutil.listfilediffs(tmpl, ctx.files(), n, web.maxfiles) l.insert(0, {"parity": parity.next(), "author": ctx.user(), @@ -186,7 +188,7 @@ "changelogtag": showtags, "desc": ctx.description(), "date": ctx.date(), - "files": web.listfilediffs(tmpl, ctx.files(), n), + "files": files, "rev": i, "node": hex(n), "tags": webutil.nodetagsdict(web.repo, n),