# HG changeset patch # User Yuya Nishihara # Date 2011-04-09 21:37:20 # Node ID 4788923a2b33ae7b437365d238b5bd7be8508dea # Parent 332e400764e50646d26512cd9202e088f989dbb6 hgweb: add bookmarks listing to raw style with test case diff --git a/mercurial/templates/raw/map b/mercurial/templates/raw/map --- a/mercurial/templates/raw/map +++ b/mercurial/templates/raw/map @@ -24,5 +24,7 @@ error = error.tmpl 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 --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 @@ -603,6 +603,10 @@ Overviews 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