comparison mercurial/hgweb/webcommands.py @ 25132:917b5a071888

paper: show branch/tags/bookmarks when browsing (issue3559) Browse (or manifest) action allows browsing the directory structure at some specified revision. In gitweb and monoblue styles, the revision header already has branch/tag/bookmark information for the revision, but in paper style this header was only showing tags. This patch adds branches and bookmarks. Branch name needs to be obtained in this special way to be consistent with regular changeset page, where in paper style default branch is never shown.
author Anton Shestakov <engored@ya.ru>
date Fri, 15 May 2015 18:17:36 +0800
parents 9668c653eb9d
children 3d82c517b9c5
comparison
equal deleted inserted replaced
25131:adfe4d9680bf 25132:917b5a071888
544 fentries=filelist, 544 fentries=filelist,
545 dentries=dirlist, 545 dentries=dirlist,
546 archives=web.archivelist(hex(node)), 546 archives=web.archivelist(hex(node)),
547 tags=webutil.nodetagsdict(web.repo, node), 547 tags=webutil.nodetagsdict(web.repo, node),
548 bookmarks=webutil.nodebookmarksdict(web.repo, node), 548 bookmarks=webutil.nodebookmarksdict(web.repo, node),
549 branch=webutil.nodebranchnodefault(ctx),
549 inbranch=webutil.nodeinbranch(web.repo, ctx), 550 inbranch=webutil.nodeinbranch(web.repo, ctx),
550 branches=webutil.nodebranchdict(web.repo, ctx)) 551 branches=webutil.nodebranchdict(web.repo, ctx))
551 552
552 @webcommand('tags') 553 @webcommand('tags')
553 def tags(web, req, tmpl): 554 def tags(web, req, tmpl):