comparison 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
comparison
equal deleted inserted replaced
27080:ae2d3782d818 27081:37290f2f2c3b
1043 latestentry = entries[:1] 1043 latestentry = entries[:1]
1044 1044
1045 revnav = webutil.filerevnav(web.repo, fctx.path()) 1045 revnav = webutil.filerevnav(web.repo, fctx.path())
1046 nav = revnav.gen(end - 1, revcount, count) 1046 nav = revnav.gen(end - 1, revcount, count)
1047 return tmpl("filelog", file=f, node=fctx.hex(), nav=nav, 1047 return tmpl("filelog", file=f, node=fctx.hex(), nav=nav,
1048 rev=fctx.rev(),
1048 symrev=webutil.symrevorshortnode(req, fctx), 1049 symrev=webutil.symrevorshortnode(req, fctx),
1050 branch=webutil.nodebranchnodefault(fctx),
1051 tags=webutil.nodetagsdict(web.repo, fctx.node()),
1052 bookmarks=webutil.nodebookmarksdict(web.repo, fctx.node()),
1049 entries=entries, 1053 entries=entries,
1050 latestentry=latestentry, 1054 latestentry=latestentry,
1051 revcount=revcount, morevars=morevars, lessvars=lessvars) 1055 revcount=revcount, morevars=morevars, lessvars=lessvars)
1052 1056
1053 @webcommand('archive') 1057 @webcommand('archive')