diff --git a/mercurial/templates/gitweb/changelogentry.tmpl b/mercurial/templates/gitweb/changelogentry.tmpl
--- a/mercurial/templates/gitweb/changelogentry.tmpl
+++ b/mercurial/templates/gitweb/changelogentry.tmpl
@@ -1,5 +1,5 @@
diff --git a/mercurial/templates/gitweb/changeset.tmpl b/mercurial/templates/gitweb/changeset.tmpl
--- a/mercurial/templates/gitweb/changeset.tmpl
+++ b/mercurial/templates/gitweb/changeset.tmpl
@@ -26,7 +26,7 @@ changeset |
diff --git a/mercurial/templates/gitweb/graph.tmpl b/mercurial/templates/gitweb/graph.tmpl
--- a/mercurial/templates/gitweb/graph.tmpl
+++ b/mercurial/templates/gitweb/graph.tmpl
@@ -85,7 +85,7 @@ graph.vertex = function(x, y, color, par
item = item.replace(/_DATE/, cur[5]);
var tagspan = '';
- if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) \{
+ if (cur[7].length || cur[8].length || (cur[6][0] != 'default' || cur[6][1])) \{
tagspan = '';
if (cur[6][1]) \{
tagspan += '';
@@ -100,6 +100,12 @@ graph.vertex = function(x, y, color, par
tagspan += '' + tag + ' ';
}
}
+ if (cur[8].length) \{
+ for (var t in cur[8]) \{
+ var bookmark = cur[8][t];
+ tagspan += '' + bookmark + ' ';
+ }
+ }
tagspan += '';
}
diff --git a/mercurial/templates/gitweb/manifest.tmpl b/mercurial/templates/gitweb/manifest.tmpl
--- a/mercurial/templates/gitweb/manifest.tmpl
+++ b/mercurial/templates/gitweb/manifest.tmpl
@@ -24,7 +24,7 @@ files |
-{path|escape} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}
+{path|escape} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}
drwxr-xr-x |
diff --git a/mercurial/templates/gitweb/map b/mercurial/templates/gitweb/map
--- a/mercurial/templates/gitweb/map
+++ b/mercurial/templates/gitweb/map
@@ -214,6 +214,7 @@ graph = graph.tmpl
tagtag = '{name} '
branchtag = '{name} '
inbranchtag = '{name} '
+bookmarktag = '{name} '
shortlogentry = '
{date|age} |
@@ -221,7 +222,7 @@ shortlogentry = '
{desc|strip|firstline|escape|nonempty}
- {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}
+ {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}
|
diff --git a/mercurial/templates/static/style-gitweb.css b/mercurial/templates/static/style-gitweb.css
--- a/mercurial/templates/static/style-gitweb.css
+++ b/mercurial/templates/static/style-gitweb.css
@@ -80,6 +80,10 @@ span.logtags span.inbranchtag {
background-color: #d5dde6;
border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
}
+span.logtags span.bookmarktag {
+ background-color: #afdffa;
+ border-color: #ccecff #46ace6 #46ace6 #ccecff;
+}
/* Graph */
div#wrapper {
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
@@ -662,7 +662,7 @@ Overviews
|
branch
- stable tip
+ stable tip something
|
@@ -853,7 +853,7 @@ Overviews
item = item.replace(/_DATE/, cur[5]);
var tagspan = '';
- if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) {
+ if (cur[7].length || cur[8].length || (cur[6][0] != 'default' || cur[6][1])) {
tagspan = '';
if (cur[6][1]) {
tagspan += '';
@@ -868,6 +868,12 @@ Overviews
tagspan += '' + tag + ' ';
}
}
+ if (cur[8].length) {
+ for (var t in cur[8]) {
+ var bookmark = cur[8][t];
+ tagspan += '' + bookmark + ' ';
+ }
+ }
tagspan += '';
}
diff --git a/tests/test-hgweb.t b/tests/test-hgweb.t
--- a/tests/test-hgweb.t
+++ b/tests/test-hgweb.t
@@ -383,6 +383,10 @@ static file
background-color: #d5dde6;
border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
}
+ span.logtags span.bookmarktag {
+ background-color: #afdffa;
+ border-color: #ccecff #46ace6 #46ace6 #ccecff;
+ }
/* Graph */
div#wrapper {
|