# HG changeset patch # User Matt Mackall # Date 1301923568 18000 # Node ID 38906cf9d15cabb89a520d22325d6c29b70ea93a # Parent 28f557e8b4198d58a65621447544f0eec7048eb3# Parent e33ebe67657a481fd0c0f53ea929aa41925fd972 merge with stable diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/atom/bookmarkentry.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mercurial/templates/atom/bookmarkentry.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -0,0 +1,8 @@ + + {bookmark|escape} + + {urlbase}{url}#bookmark-{node} + {date|rfc3339date} + {date|rfc3339date} + {bookmark|strip|escape} + diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/atom/bookmarks.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mercurial/templates/atom/bookmarks.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -0,0 +1,11 @@ +{header} + {urlbase}{url} + + + {repo|escape}: bookmarks + {repo|escape} bookmark history + Mercurial SCM + {latestentry%feedupdated} + +{entries%bookmarkentry} + diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/atom/map --- a/mercurial/templates/atom/map Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/atom/map Mon Apr 04 08:26:08 2011 -0500 @@ -8,4 +8,6 @@ filelogentry = filelogentry.tmpl tags = tags.tmpl tagentry = tagentry.tmpl +bookmarks = bookmarks.tmpl +bookmarkentry = bookmarkentry.tmpl error = error.tmpl diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/coal/map --- a/mercurial/templates/coal/map Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/coal/map Mon Apr 04 08:26:08 2011 -0500 @@ -140,6 +140,18 @@ {node|short} ' +bookmarks = ../paper/bookmarks.tmpl +bookmarkentry = ' + + + + {bookmark|escape} + + + + {node|short} + + ' branches = ../paper/branches.tmpl branchentry = ' @@ -154,6 +166,7 @@ ' changelogtag = '{name|escape} ' changesettag = '{tag|escape} ' +changesetbookmark = '{bookmark|escape} ' changelogbranchhead = '{name|escape} ' changelogbranchname = '{name|escape} ' diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/gitweb/bookmarks.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mercurial/templates/gitweb/bookmarks.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -0,0 +1,32 @@ +{header} +{repo|escape}: Bookmarks + + + + + + + + + +
 
+ +{entries%bookmarkentry} +
+ +{footer} diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/gitweb/branches.tmpl --- a/mercurial/templates/gitweb/branches.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/gitweb/branches.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -17,6 +17,7 @@ changelog | graph | tags | +bookmarks | branches | files | help diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/gitweb/changelog.tmpl --- a/mercurial/templates/gitweb/changelog.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/gitweb/changelog.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -24,6 +24,7 @@ changelog | graph | tags | +bookmarks | branches | files{archives%archiveentry} | help diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/gitweb/changelogentry.tmpl --- a/mercurial/templates/gitweb/changelogentry.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/gitweb/changelogentry.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -1,5 +1,5 @@
-{date|age}{desc|strip|firstline|escape|nonempty} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag} +{date|age}{desc|strip|firstline|escape|nonempty} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}
-{desc|strip|escape|firstline|nonempty} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag} +{desc|strip|escape|firstline|nonempty} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}
diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/gitweb/error.tmpl --- a/mercurial/templates/gitweb/error.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/gitweb/error.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -12,7 +12,15 @@
diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/gitweb/fileannotate.tmpl --- a/mercurial/templates/gitweb/fileannotate.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/gitweb/fileannotate.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -17,6 +17,7 @@ changelog | graph | tags | +bookmarks | branches | files | changeset | diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/gitweb/filediff.tmpl --- a/mercurial/templates/gitweb/filediff.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/gitweb/filediff.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -17,6 +17,7 @@ changelog | graph | tags | +bookmarks | branches | files | changeset | diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/gitweb/filelog.tmpl --- a/mercurial/templates/gitweb/filelog.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/gitweb/filelog.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -17,6 +17,7 @@ changelog | graph | tags | +bookmarks | branches | file | revisions | diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/gitweb/filerevision.tmpl --- a/mercurial/templates/gitweb/filerevision.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/gitweb/filerevision.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -17,6 +17,7 @@ changelog | graph | tags | +bookmarks | branches | files | changeset | diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/gitweb/graph.tmpl --- a/mercurial/templates/gitweb/graph.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/gitweb/graph.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -24,6 +24,7 @@ changelog | graph | tags | +bookmarks | branches | files | help @@ -85,7 +86,7 @@ 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 @@ tagspan += '' + tag + ' '; } } + if (cur[8].length) \{ + for (var t in cur[8]) \{ + var bookmark = cur[8][t]; + tagspan += '' + bookmark + ' '; + } + } tagspan += ''; } diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/gitweb/help.tmpl --- a/mercurial/templates/gitweb/help.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/gitweb/help.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -8,7 +8,7 @@ diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/gitweb/helptopics.tmpl --- a/mercurial/templates/gitweb/helptopics.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/gitweb/helptopics.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -8,7 +8,7 @@ -
{path|escape} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}
+
{path|escape} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}
diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/gitweb/map --- a/mercurial/templates/gitweb/map Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/gitweb/map Mon Apr 04 08:26:08 2011 -0500 @@ -170,6 +170,17 @@ files' +bookmarks = bookmarks.tmpl +bookmarkentry = ' + + + + + ' branches = branches.tmpl branchentry = ' @@ -214,6 +225,7 @@ tagtag = '{name} ' branchtag = '{name} ' inbranchtag = '{name} ' +bookmarktag = '{name} ' shortlogentry = ' @@ -221,7 +233,7 @@ ' +bookmarks = bookmarks.tmpl +bookmarkentry = ' + + + + + ' branches = branches.tmpl branchentry = ' diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/monoblue/notfound.tmpl --- a/mercurial/templates/monoblue/notfound.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/monoblue/notfound.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -23,6 +23,7 @@
  • changelog
  • graph
  • tags
  • +
  • bookmarks
  • branches
  • files{archives%archiveentry}
  • help
  • diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/monoblue/search.tmpl --- a/mercurial/templates/monoblue/search.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/monoblue/search.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -23,6 +23,7 @@
  • changelog
  • graph
  • tags
  • +
  • bookmarks
  • branches
  • files{archives%archiveentry}
  • help
  • diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/monoblue/shortlog.tmpl --- a/mercurial/templates/monoblue/shortlog.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/monoblue/shortlog.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -23,6 +23,7 @@
  • changelog
  • graph
  • tags
  • +
  • bookmarks
  • branches
  • files
  • {archives%archiveentry} diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/monoblue/summary.tmpl --- a/mercurial/templates/monoblue/summary.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/monoblue/summary.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -23,6 +23,7 @@
  • changelog
  • graph
  • tags
  • +
  • bookmarks
  • branches
  • files
  • help
  • diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/monoblue/tags.tmpl --- a/mercurial/templates/monoblue/tags.tmpl Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/monoblue/tags.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -23,6 +23,7 @@
  • changelog
  • graph
  • tags
  • +
  • bookmarks
  • branches
  • files
  • help
  • diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/rss/bookmarkentry.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mercurial/templates/rss/bookmarkentry.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -0,0 +1,6 @@ + + {bookmark|escape} + {urlbase}{url}rev/{node|short} + + {date|rfc822date} + diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/rss/bookmarks.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mercurial/templates/rss/bookmarks.tmpl Mon Apr 04 08:26:08 2011 -0500 @@ -0,0 +1,6 @@ +{header} + {repo|escape}: bookmarks + {repo|escape} bookmark history + {entries%bookmarkentry} + + diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/rss/map --- a/mercurial/templates/rss/map Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/rss/map Mon Apr 04 08:26:08 2011 -0500 @@ -7,4 +7,6 @@ filelogentry = filelogentry.tmpl tags = tags.tmpl tagentry = tagentry.tmpl +bookmarks = bookmarks.tmpl +bookmarkentry = bookmarkentry.tmpl error = error.tmpl diff -r 28f557e8b419 -r 38906cf9d15c mercurial/templates/static/style-gitweb.css --- a/mercurial/templates/static/style-gitweb.css Mon Apr 04 00:23:21 2011 +0800 +++ b/mercurial/templates/static/style-gitweb.css Mon Apr 04 08:26:08 2011 -0500 @@ -80,6 +80,10 @@ 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 -r 28f557e8b419 -r 38906cf9d15c tests/test-hgweb-commands.t --- a/tests/test-hgweb-commands.t Mon Apr 04 00:23:21 2011 +0800 +++ b/tests/test-hgweb-commands.t Mon Apr 04 08:26:08 2011 -0500 @@ -640,6 +640,7 @@ changelog | graph | tags | + bookmarks | branches | files | help @@ -662,7 +663,7 @@
    drwxr-xr-x
    {date|age}{bookmark|escape}
    {date|age} {desc|strip|firstline|escape|nonempty} - {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag} + {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}
    {date|age}{bookmark|escape} + changeset | + changelog | + files +
    branch - stable tip + stable tip something