diff --git a/mercurial/templates/gitweb/fileannotate.tmpl b/mercurial/templates/gitweb/fileannotate.tmpl
--- a/mercurial/templates/gitweb/fileannotate.tmpl
+++ b/mercurial/templates/gitweb/fileannotate.tmpl
@@ -17,6 +17,7 @@
changelog |
graph |
tags |
+
bookmarks |
branches |
files |
changeset |
diff --git a/mercurial/templates/gitweb/filediff.tmpl b/mercurial/templates/gitweb/filediff.tmpl
--- a/mercurial/templates/gitweb/filediff.tmpl
+++ b/mercurial/templates/gitweb/filediff.tmpl
@@ -17,6 +17,7 @@
changelog |
graph |
tags |
+
bookmarks |
branches |
files |
changeset |
diff --git a/mercurial/templates/gitweb/filelog.tmpl b/mercurial/templates/gitweb/filelog.tmpl
--- a/mercurial/templates/gitweb/filelog.tmpl
+++ b/mercurial/templates/gitweb/filelog.tmpl
@@ -17,6 +17,7 @@
changelog |
graph |
tags |
+
bookmarks |
branches |
file |
revisions |
diff --git a/mercurial/templates/gitweb/filerevision.tmpl b/mercurial/templates/gitweb/filerevision.tmpl
--- a/mercurial/templates/gitweb/filerevision.tmpl
+++ b/mercurial/templates/gitweb/filerevision.tmpl
@@ -17,6 +17,7 @@
changelog |
graph |
tags |
+
bookmarks |
branches |
files |
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
@@ -24,6 +24,7 @@
changelog |
graph |
tags |
+
bookmarks |
branches |
files |
help
@@ -85,7 +86,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 +101,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/help.tmpl b/mercurial/templates/gitweb/help.tmpl
--- a/mercurial/templates/gitweb/help.tmpl
+++ b/mercurial/templates/gitweb/help.tmpl
@@ -8,7 +8,7 @@
@@ -17,8 +17,10 @@
changelog |
graph |
tags |
-branches |
-
files
+
bookmarks |
+
branches |
+
files |
+help
diff --git a/mercurial/templates/gitweb/helptopics.tmpl b/mercurial/templates/gitweb/helptopics.tmpl
--- a/mercurial/templates/gitweb/helptopics.tmpl
+++ b/mercurial/templates/gitweb/helptopics.tmpl
@@ -8,7 +8,7 @@
@@ -17,6 +17,7 @@
changelog |
graph |
tags |
+
bookmarks |
branches |
files |
help
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
@@ -17,6 +17,7 @@
changelog |
graph |
tags |
+
bookmarks |
branches |
files |
changeset {archives%archiveentry} |
@@ -24,7 +25,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
@@ -170,6 +170,17 @@ tagentry = '
files
'
+bookmarks = bookmarks.tmpl
+bookmarkentry = '
+
+ {date|age} |
+ {bookmark|escape} |
+
+ changeset |
+ changelog |
+ files
+ |
+
'
branches = branches.tmpl
branchentry = '
@@ -214,6 +225,7 @@ graph = graph.tmpl
tagtag = '{name} '
branchtag = '{name} '
inbranchtag = '{name} '
+bookmarktag = '{name} '
shortlogentry = '
{date|age} |
@@ -221,7 +233,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/gitweb/search.tmpl b/mercurial/templates/gitweb/search.tmpl
--- a/mercurial/templates/gitweb/search.tmpl
+++ b/mercurial/templates/gitweb/search.tmpl
@@ -24,6 +24,7 @@
changelog |
graph |
tags |
+bookmarks |
branches |
files{archives%archiveentry}
|
diff --git a/mercurial/templates/gitweb/shortlog.tmpl b/mercurial/templates/gitweb/shortlog.tmpl
--- a/mercurial/templates/gitweb/shortlog.tmpl
+++ b/mercurial/templates/gitweb/shortlog.tmpl
@@ -23,6 +23,7 @@ shortlog |
changelog |
graph |
tags |
+bookmarks |
branches |
files{archives%archiveentry} |
help
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
@@ -24,6 +24,7 @@ summary |
changelog |
graph |
tags |
+bookmarks |
branches |
files{archives%archiveentry} |
help
diff --git a/mercurial/templates/gitweb/tags.tmpl b/mercurial/templates/gitweb/tags.tmpl
--- a/mercurial/templates/gitweb/tags.tmpl
+++ b/mercurial/templates/gitweb/tags.tmpl
@@ -17,6 +17,7 @@
changelog |
graph |
tags |
+bookmarks |
branches |
files |
help
diff --git a/mercurial/templates/monoblue/bookmarks.tmpl b/mercurial/templates/monoblue/bookmarks.tmpl
new file mode 100644
--- /dev/null
+++ b/mercurial/templates/monoblue/bookmarks.tmpl
@@ -0,0 +1,38 @@
+{header}
+ {repo|escape}: Bookmarks
+
+
+
+
+
+
+
+
+ bookmarks
+
+{entries%bookmarkentry}
+
+
+{footer}
diff --git a/mercurial/templates/monoblue/branches.tmpl b/mercurial/templates/monoblue/branches.tmpl
--- a/mercurial/templates/monoblue/branches.tmpl
+++ b/mercurial/templates/monoblue/branches.tmpl
@@ -23,6 +23,7 @@
changelog
graph
tags
+ bookmarks
branches
files
help
diff --git a/mercurial/templates/monoblue/changelog.tmpl b/mercurial/templates/monoblue/changelog.tmpl
--- a/mercurial/templates/monoblue/changelog.tmpl
+++ b/mercurial/templates/monoblue/changelog.tmpl
@@ -23,6 +23,7 @@
changelog
graph
tags
+ bookmarks
branches
files{archives%archiveentry}
help
diff --git a/mercurial/templates/monoblue/changeset.tmpl b/mercurial/templates/monoblue/changeset.tmpl
--- a/mercurial/templates/monoblue/changeset.tmpl
+++ b/mercurial/templates/monoblue/changeset.tmpl
@@ -23,6 +23,7 @@
changelog
graph
tags
+ bookmarks
branches
files
help
diff --git a/mercurial/templates/monoblue/error.tmpl b/mercurial/templates/monoblue/error.tmpl
--- a/mercurial/templates/monoblue/error.tmpl
+++ b/mercurial/templates/monoblue/error.tmpl
@@ -23,6 +23,7 @@
changelog
graph
tags
+ bookmarks
branches
files
help
diff --git a/mercurial/templates/monoblue/fileannotate.tmpl b/mercurial/templates/monoblue/fileannotate.tmpl
--- a/mercurial/templates/monoblue/fileannotate.tmpl
+++ b/mercurial/templates/monoblue/fileannotate.tmpl
@@ -23,6 +23,7 @@
changelog
graph
tags
+ bookmarks
branches
files
help
diff --git a/mercurial/templates/monoblue/filediff.tmpl b/mercurial/templates/monoblue/filediff.tmpl
--- a/mercurial/templates/monoblue/filediff.tmpl
+++ b/mercurial/templates/monoblue/filediff.tmpl
@@ -23,6 +23,7 @@
changelog
graph
tags
+ bookmarks
branches
files
help
diff --git a/mercurial/templates/monoblue/filelog.tmpl b/mercurial/templates/monoblue/filelog.tmpl
--- a/mercurial/templates/monoblue/filelog.tmpl
+++ b/mercurial/templates/monoblue/filelog.tmpl
@@ -23,6 +23,7 @@
changelog
graph
tags
+ bookmarks
branches
files
help
diff --git a/mercurial/templates/monoblue/filerevision.tmpl b/mercurial/templates/monoblue/filerevision.tmpl
--- a/mercurial/templates/monoblue/filerevision.tmpl
+++ b/mercurial/templates/monoblue/filerevision.tmpl
@@ -23,6 +23,7 @@
changelog
graph
tags
+ bookmarks
branches
files
help
diff --git a/mercurial/templates/monoblue/graph.tmpl b/mercurial/templates/monoblue/graph.tmpl
--- a/mercurial/templates/monoblue/graph.tmpl
+++ b/mercurial/templates/monoblue/graph.tmpl
@@ -24,6 +24,7 @@
changelog
graph
tags
+ bookmarks
branches
files
help
diff --git a/mercurial/templates/monoblue/help.tmpl b/mercurial/templates/monoblue/help.tmpl
--- a/mercurial/templates/monoblue/help.tmpl
+++ b/mercurial/templates/monoblue/help.tmpl
@@ -7,7 +7,7 @@
|
'
+bookmarks = bookmarks.tmpl
+bookmarkentry = '
+
+ {date|age} |
+ {bookmark|escape} |
+
+ changeset |
+ changelog |
+ files
+ |
+
'
branches = branches.tmpl
branchentry = '
diff --git a/mercurial/templates/monoblue/notfound.tmpl b/mercurial/templates/monoblue/notfound.tmpl
--- a/mercurial/templates/monoblue/notfound.tmpl
+++ b/mercurial/templates/monoblue/notfound.tmpl
@@ -23,6 +23,7 @@
changelog
graph
tags
+ bookmarks
branches
files{archives%archiveentry}
help
diff --git a/mercurial/templates/monoblue/search.tmpl b/mercurial/templates/monoblue/search.tmpl
--- a/mercurial/templates/monoblue/search.tmpl
+++ b/mercurial/templates/monoblue/search.tmpl
@@ -23,6 +23,7 @@
changelog
graph
tags
+ bookmarks
branches
files{archives%archiveentry}
help
diff --git a/mercurial/templates/monoblue/shortlog.tmpl b/mercurial/templates/monoblue/shortlog.tmpl
--- a/mercurial/templates/monoblue/shortlog.tmpl
+++ b/mercurial/templates/monoblue/shortlog.tmpl
@@ -23,6 +23,7 @@
changelog
graph
tags
+ bookmarks
branches
files
{archives%archiveentry}
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
@@ -23,6 +23,7 @@
changelog
graph
tags
+ bookmarks
branches
files
help
diff --git a/mercurial/templates/monoblue/tags.tmpl b/mercurial/templates/monoblue/tags.tmpl
--- a/mercurial/templates/monoblue/tags.tmpl
+++ b/mercurial/templates/monoblue/tags.tmpl
@@ -23,6 +23,7 @@
changelog
graph
tags
+ bookmarks
branches
files
help
diff --git a/mercurial/templates/rss/bookmarkentry.tmpl b/mercurial/templates/rss/bookmarkentry.tmpl
new file mode 100644
--- /dev/null
+++ b/mercurial/templates/rss/bookmarkentry.tmpl
@@ -0,0 +1,6 @@
+-
+ {bookmark|escape}
+ {urlbase}{url}rev/{node|short}
+
+ {date|rfc822date}
+
diff --git a/mercurial/templates/rss/bookmarks.tmpl b/mercurial/templates/rss/bookmarks.tmpl
new file mode 100644
--- /dev/null
+++ b/mercurial/templates/rss/bookmarks.tmpl
@@ -0,0 +1,6 @@
+{header}
+ {repo|escape}: bookmarks
+ {repo|escape} bookmark history
+ {entries%bookmarkentry}
+
+
diff --git a/mercurial/templates/rss/map b/mercurial/templates/rss/map
--- a/mercurial/templates/rss/map
+++ b/mercurial/templates/rss/map
@@ -7,4 +7,6 @@ filelog = filelog.tmpl
filelogentry = filelogentry.tmpl
tags = tags.tmpl
tagentry = tagentry.tmpl
+bookmarks = bookmarks.tmpl
+bookmarkentry = bookmarkentry.tmpl
error = error.tmpl
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
@@ -640,6 +640,7 @@ Overviews
changelog |
graph |
tags |
+ bookmarks |
branches |
files |
help
@@ -662,7 +663,7 @@ Overviews
branch
- stable tip
+ stable tip something
|
@@ -792,6 +793,7 @@ Overviews
changelog |
graph |
tags |
+ bookmarks |
branches |
files |
help
@@ -853,7 +855,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 +870,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 {
|