diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -460,6 +460,15 @@ def summary(web, req, tmpl):
node=hex(n),
date=web.repo[n].date())
+ def bookmarks(**map):
+ parity = paritygen(web.stripecount)
+ b = web.repo._bookmarks.items()
+ for k, n in sorted(b)[:10]: # limit to 10 bookmarks
+ yield {'parity': parity.next(),
+ 'bookmark': k,
+ 'date': web.repo[n].date(),
+ 'node': hex(n)}
+
def branches(**map):
parity = paritygen(web.stripecount)
@@ -504,6 +513,7 @@ def summary(web, req, tmpl):
owner=get_contact(web.config) or "unknown",
lastchange=tip.date(),
tags=tagentries,
+ bookmarks=bookmarks,
branches=branches,
shortlog=changelist,
node=tip.hex(),
diff --git a/mercurial/templates/gitweb/summary.tmpl b/mercurial/templates/gitweb/summary.tmpl
--- a/mercurial/templates/gitweb/summary.tmpl
+++ b/mercurial/templates/gitweb/summary.tmpl
@@ -50,6 +50,12 @@ summary |
... |
+
+
+{bookmarks%bookmarkentry}
+... |
+
+
{branches%branchentry}
diff --git a/mercurial/templates/monoblue/summary.tmpl b/mercurial/templates/monoblue/summary.tmpl
--- a/mercurial/templates/monoblue/summary.tmpl
+++ b/mercurial/templates/monoblue/summary.tmpl
@@ -58,6 +58,14 @@
+
+
+ {bookmarks%bookmarkentry}
+
+ ... |
+
+
+
Branches
{branches%branchentry}
diff --git a/tests/test-hgweb-commands.t b/tests/test-hgweb-commands.t
--- a/tests/test-hgweb-commands.t
+++ b/tests/test-hgweb-commands.t
@@ -723,6 +723,30 @@ Overviews
... |
+
+
+