hgweb: fix "branches" links in gitweb template
Tests fixed by Patrick Mézard <patrick@mezard.eu>
--- a/mercurial/templates/gitweb/summary.tmpl Mon Jul 30 08:11:22 2012 +0200
+++ b/mercurial/templates/gitweb/summary.tmpl Mon Jul 30 08:18:25 2012 +0200
@@ -56,11 +56,11 @@
<tr class="light"><td colspan="3"><a class="list" href="{url}bookmarks{sessionvars%urlparameter}">...</a></td></tr>
</table>
-<div><a class="title" href="#">branches</a></div>
+<div><a class="title" href="{url}branches{sessionvars%urlparameter}">branches</a></div>
<table cellspacing="0">
{branches%branchentry}
<tr class="light">
- <td colspan="4"><a class="list" href="#">...</a></td>
+ <td colspan="4"><a class="list" href="{url}branches{sessionvars%urlparameter}">...</a></td>
</tr>
</table>
{footer}
--- a/tests/test-hgweb-commands.t Mon Jul 30 08:11:22 2012 +0200
+++ b/tests/test-hgweb-commands.t Mon Jul 30 08:18:25 2012 +0200
@@ -857,7 +857,7 @@
<tr class="light"><td colspan="3"><a class="list" href="/bookmarks?style=gitweb">...</a></td></tr>
</table>
- <div><a class="title" href="#">branches</a></div>
+ <div><a class="title" href="/branches?style=gitweb">branches</a></div>
<table cellspacing="0">
<tr class="parity0">
@@ -891,7 +891,7 @@
</td>
</tr>
<tr class="light">
- <td colspan="4"><a class="list" href="#">...</a></td>
+ <td colspan="4"><a class="list" href="/branches?style=gitweb">...</a></td>
</tr>
</table>
<script type="text/javascript">process_dates()</script>