Mercurial > hg
diff mercurial/hgweb/webcommands.py @ 27081:37290f2f2c3b
paper: show current revision on file log page
Most of the pages in paper (and coal) style show the current revision and its
branch, tags and bookmarks. Let's also show all this on file log page.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 13 Nov 2015 18:31:58 +0800 |
parents | 37fcfe52c68c |
children | 522ffc189671 |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Fri Nov 20 11:26:31 2015 -0800 +++ b/mercurial/hgweb/webcommands.py Fri Nov 13 18:31:58 2015 +0800 @@ -1045,7 +1045,11 @@ revnav = webutil.filerevnav(web.repo, fctx.path()) nav = revnav.gen(end - 1, revcount, count) return tmpl("filelog", file=f, node=fctx.hex(), nav=nav, + rev=fctx.rev(), symrev=webutil.symrevorshortnode(req, fctx), + branch=webutil.nodebranchnodefault(fctx), + tags=webutil.nodetagsdict(web.repo, fctx.node()), + bookmarks=webutil.nodebookmarksdict(web.repo, fctx.node()), entries=entries, latestentry=latestentry, revcount=revcount, morevars=morevars, lessvars=lessvars)