[PATCH 1 of 4] hgweb: add bookmarks listing to raw style with test case
Yuya Nishihara
yuya at tcha.org
Sat Apr 9 20:04:13 CDT 2011
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1302385040 -32400
# Node ID 40928f8c7eb2b29cd54912bbe50ca934a12cccff
# Parent 8f81d6f4047fedc325dc0ff7ba507188d7b9d67d
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
More information about the Mercurial-devel
mailing list