hgweb: add bookmarks listing to raw style with test case
authorYuya Nishihara <yuya@tcha.org>
Sun, 10 Apr 2011 06:37:20 +0900
changeset 13921 4788923a2b33
parent 13920 332e400764e5
child 13922 b8dd2e95b0ca
hgweb: add bookmarks listing to raw style with test case
mercurial/templates/raw/map
tests/test-hgweb-commands.t
--- a/mercurial/templates/raw/map	Sat Apr 09 23:13:17 2011 +0530
+++ b/mercurial/templates/raw/map	Sun Apr 10 06:37:20 2011 +0900
@@ -24,5 +24,7 @@
 indexentry = '{url}\n'
 tags = '{entries%tagentry}'
 tagentry = '{tag}	{node}\n'
+bookmarks = '{entries%bookmarkentry}'
+bookmarkentry = '{bookmark}	{node}\n'
 branches = '{entries%branchentry}'
 branchentry = '{branch}	{node}	{status}\n'
--- a/tests/test-hgweb-commands.t	Sat Apr 09 23:13:17 2011 +0530
+++ b/tests/test-hgweb-commands.t	Sun Apr 10 06:37:20 2011 +0900
@@ -603,6 +603,10 @@
   
   stable	1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe	open
   default	a4f92ed23982be056b9852de5dfe873eaac7f0de	inactive
+  $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/raw-bookmarks'
+  200 Script output follows
+  
+  something	1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/summary/?style=gitweb'
   200 Script output follows