# HG changeset patch # User Dirkjan Ochtman # Date 1259326407 -3600 # Node ID 2059be77d4f8e33c7746f493f3f9edeee37a0d26 # Parent 5e4ef56b4d420ca8f28964114a49c26508ab34c0 templates: add raw templates for tags/branches pages diff -r 5e4ef56b4d42 -r 2059be77d4f8 templates/raw/map --- a/templates/raw/map Thu Nov 26 23:10:59 2009 +0100 +++ b/templates/raw/map Fri Nov 27 13:53:27 2009 +0100 @@ -21,3 +21,7 @@ notfound = notfound.tmpl error = error.tmpl indexentry = '{url}\n' +tags = '{entries%tagentry}' +tagentry = '{tag} {node}\n' +branches = '{entries%branchentry}' +branchentry = '{branch} {node} {status}\n' diff -r 5e4ef56b4d42 -r 2059be77d4f8 tests/test-hgweb-commands --- a/tests/test-hgweb-commands Thu Nov 26 23:10:59 2009 +0100 +++ b/tests/test-hgweb-commands Fri Nov 27 13:53:27 2009 +0100 @@ -35,8 +35,8 @@ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/filediff/1/foo/?style=raw' echo % Overviews -"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/tags/?style=atom' | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//" -"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/branches/?style=gitweb' | sed "s/http:\/\/[^/]*\//http:\/\/127.0.0.1\//" +"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/raw-tags' +"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/raw-branches' "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/summary/?style=gitweb' "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/graph/?style=gitweb' diff -r 5e4ef56b4d42 -r 2059be77d4f8 tests/test-hgweb-commands.out --- a/tests/test-hgweb-commands.out Thu Nov 26 23:10:59 2009 +0100 +++ b/tests/test-hgweb-commands.out Fri Nov 27 13:53:27 2009 +0100 @@ -465,97 +465,12 @@ % Overviews 200 Script output follows - - - http://127.0.0.1/ - - - test: tags - test tag history - Mercurial SCM - 1970-01-01T00:00:00+00:00 - - - 1.0 - - http://127.0.0.1/#tag-2ef0ac749a14e4f57a5a822464a0902c6f7f448f - 1970-01-01T00:00:00+00:00 - 1970-01-01T00:00:00+00:00 - 1.0 - - - +tip 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe +1.0 2ef0ac749a14e4f57a5a822464a0902c6f7f448f 200 Script output follows - - - - - - - - - -test: Branches - - - - - - - - - -
 
- - - - - - - - - - - - - - -
1970-01-011d22e65f027estable
1970-01-01a4f92ed23982default
- - - - - +stable 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe open +default a4f92ed23982be056b9852de5dfe873eaac7f0de inactive 200 Script output follows