# HG changeset patch # User Yuya Nishihara # Date 1302385040 -32400 # Node ID 4788923a2b33ae7b437365d238b5bd7be8508dea # Parent 332e400764e50646d26512cd9202e088f989dbb6 hgweb: add bookmarks listing to raw style with test case diff -r 332e400764e5 -r 4788923a2b33 mercurial/templates/raw/map --- 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' diff -r 332e400764e5 -r 4788923a2b33 tests/test-hgweb-commands.t --- 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