Mercurial > hg-stable
diff tests/test-hgweb-diffs.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 | 4b0fc75f9403 |
line wrap: on
line diff
--- a/tests/test-hgweb-diffs.t Thu Jun 18 16:14:10 2015 +0800 +++ b/tests/test-hgweb-diffs.t Thu Jun 18 17:06:18 2015 +0800 @@ -79,7 +79,10 @@ <div class="main"> <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> - <h3>changeset 0:0cd96de13884 </h3> + <h3> + changeset 0:<a href="/rev/0cd96de13884">0cd96de13884</a> + + </h3> <form class="search" action="/log"> @@ -249,7 +252,10 @@ <div class="main"> <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> - <h3>diff b @ 1:559edbd9ed20 <span class="tag">tip</span> </h3> + <h3> + diff b @ 1:<a href="/rev/559edbd9ed20">559edbd9ed20</a> + <span class="tag">tip</span> + </h3> <form class="search" action="/log"> <p></p> @@ -351,7 +357,10 @@ <div class="main"> <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> - <h3>changeset 0:0cd96de13884 </h3> + <h3> + changeset 0:<a href="/rev/0cd96de13884">0cd96de13884</a> + + </h3> <form class="search" action="/log"> @@ -525,7 +534,10 @@ <div class="main"> <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> - <h3>diff a @ 1:559edbd9ed20 <span class="tag">tip</span> </h3> + <h3> + diff a @ 1:<a href="/rev/559edbd9ed20">559edbd9ed20</a> + <span class="tag">tip</span> + </h3> <form class="search" action="/log"> <p></p> @@ -628,7 +640,10 @@ <div class="main"> <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> - <h3>comparison a @ 0:0cd96de13884 </h3> + <h3> + comparison a @ 0:<a href="/rev/0cd96de13884">0cd96de13884</a> + + </h3> <form class="search" action="/log"> <p></p> @@ -755,7 +770,10 @@ <div class="main"> <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> - <h3>comparison a @ 2:d73db4d812ff <span class="tag">tip</span> </h3> + <h3> + comparison a @ 2:<a href="/rev/d73db4d812ff">d73db4d812ff</a> + <span class="tag">tip</span> + </h3> <form class="search" action="/log"> <p></p> @@ -884,7 +902,10 @@ <div class="main"> <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> - <h3>comparison a @ 3:20e80271eb7a <span class="tag">tip</span> </h3> + <h3> + comparison a @ 3:<a href="/rev/20e80271eb7a">20e80271eb7a</a> + <span class="tag">tip</span> + </h3> <form class="search" action="/log"> <p></p> @@ -1019,7 +1040,10 @@ <div class="main"> <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> - <h3>comparison e @ 5:41d9fc4a6ae1 <span class="tag">tip</span> </h3> + <h3> + comparison e @ 5:<a href="/rev/41d9fc4a6ae1">41d9fc4a6ae1</a> + <span class="tag">tip</span> + </h3> <form class="search" action="/log"> <p></p>