# HG changeset patch # User Anton Shestakov # Date 1447410718 -28800 # Node ID 37290f2f2c3b24ed59c8e09ef8a9d80b5b25f571 # Parent ae2d3782d8184366093efe82ddec0ab5b8f3b532 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. diff -r ae2d3782d818 -r 37290f2f2c3b mercurial/hgweb/webcommands.py --- 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) diff -r ae2d3782d818 -r 37290f2f2c3b mercurial/templates/paper/filelog.tmpl --- a/mercurial/templates/paper/filelog.tmpl Fri Nov 20 11:26:31 2015 -0800 +++ b/mercurial/templates/paper/filelog.tmpl Fri Nov 13 18:31:58 2015 +0800 @@ -44,7 +44,10 @@
-

log {file|escape}

+

+ log {file|escape} @ {rev}:{node|short} + {branch%changelogbranchname}{tags%changelogtag}{bookmarks%changelogtag} +