# HG changeset patch # User Anton Shestakov # Date 2015-11-13 10:31:58 # 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 --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -1045,7 +1045,11 @@ def filelog(web, req, tmpl): 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 --git a/mercurial/templates/paper/filelog.tmpl b/mercurial/templates/paper/filelog.tmpl --- a/mercurial/templates/paper/filelog.tmpl +++ b/mercurial/templates/paper/filelog.tmpl @@ -44,7 +44,10 @@
-

log {file|escape}

+

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