changeset 13921:4788923a2b33

hgweb: add bookmarks listing to raw style with test case
author Yuya Nishihara <yuya@tcha.org>
date Sun, 10 Apr 2011 06:37:20 +0900
parents 332e400764e5
children b8dd2e95b0ca
files mercurial/templates/raw/map tests/test-hgweb-commands.t
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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