diff mercurial/hgweb/webcommands.py @ 13794:5c18a0bca26f stable

hgweb: add bookmark labels to monoblue theme (based on 270f57d35525)
author Yuya Nishihara <yuya@tcha.org>
date Wed, 30 Mar 2011 02:22:15 +0900
parents 38c9837b1f75
children 08d49b6b8d32
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Tue Mar 29 16:45:23 2011 +0300
+++ b/mercurial/hgweb/webcommands.py	Wed Mar 30 02:22:15 2011 +0900
@@ -159,6 +159,7 @@
                        rev=ctx.rev(),
                        node=hex(n),
                        tags=webutil.nodetagsdict(web.repo, n),
+                       bookmarks=webutil.nodebookmarksdict(web.repo, n),
                        inbranch=webutil.nodeinbranch(web.repo, ctx),
                        branches=webutil.nodebranchdict(web.repo, ctx))
 
@@ -362,6 +363,7 @@
                 dentries=dirlist,
                 archives=web.archivelist(hex(node)),
                 tags=webutil.nodetagsdict(web.repo, node),
+                bookmarks=webutil.nodebookmarksdict(web.repo, node),
                 inbranch=webutil.nodeinbranch(web.repo, ctx),
                 branches=webutil.nodebranchdict(web.repo, ctx))
 
@@ -490,6 +492,7 @@
                 rev=i,
                 node=hn,
                 tags=webutil.nodetagsdict(web.repo, n),
+                bookmarks=webutil.nodebookmarksdict(web.repo, n),
                 inbranch=webutil.nodeinbranch(web.repo, ctx),
                 branches=webutil.nodebranchdict(web.repo, ctx)))
 
@@ -651,6 +654,8 @@
                          "child": webutil.children(iterfctx),
                          "desc": iterfctx.description(),
                          "tags": webutil.nodetagsdict(repo, iterfctx.node()),
+                         "bookmarks": webutil.nodebookmarksdict(
+                             repo, iterfctx.node()),
                          "branch": webutil.nodebranchnodefault(iterfctx),
                          "inbranch": webutil.nodeinbranch(repo, iterfctx),
                          "branches": webutil.nodebranchdict(repo, iterfctx)})