Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hgweb-commands.t @ 25617:63be46407a50
hgweb: link to revision by node hash in paper & coal
Unlike other styles, paper and coal had only one link to current revision: in
the sidebar. Since those links now use symbolic revisions after 3bb6f5f478a7,
it's nice to have a link that allows going from /rev/tip to /rev/<tip hash>,
for instance. Let's make the node hash in the page header that new link.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 18 Jun 2015 17:06:18 +0800 |
parents | 3bb6f5f478a7 |
children | e466c15597a3 |
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t Thu Jun 18 16:14:10 2015 +0800 +++ b/tests/test-hgweb-commands.t Thu Jun 18 17:06:18 2015 +0800 @@ -867,7 +867,10 @@ <div class="main"> <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> - <h3>changeset 0:2ef0ac749a14 <span class="tag">1.0</span> <span class="tag">anotherthing</span> </h3> + <h3> + changeset 0:<a href="/rev/2ef0ac749a14">2ef0ac749a14</a> + <span class="tag">1.0</span> <span class="tag">anotherthing</span> + </h3> <form class="search" action="/log"> @@ -1296,7 +1299,10 @@ <div class="main"> <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> - <h3>view foo @ 1:a4f92ed23982 </h3> + <h3> + view foo @ 1:<a href="/rev/a4f92ed23982">a4f92ed23982</a> + + </h3> <form class="search" action="/log"> @@ -1420,7 +1426,10 @@ <div class="main"> <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> - <h3>view foo @ 2:1d22e65f027e <span class="branchname">stable</span> </h3> + <h3> + view foo @ 2:<a href="/rev/1d22e65f027e">1d22e65f027e</a> + <span class="branchname">stable</span> + </h3> <form class="search" action="/log">