Mercurial > hg
changeset 30708:011122b3b1c4
hgweb: link to raw-file on annotation page (BC)
Every other template has the "raw" link load "raw-file." However,
fileannotate.tmpl's "raw" link loads "raw-annotate." This feels
inconsistent and wrong.
As far as I can tell, linking to the "raw annotate" view has occurred
since 2006.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 28 Dec 2016 15:48:17 -0700 |
parents | 987dbe87aad6 |
children | a932297febb7 |
files | mercurial/templates/gitweb/fileannotate.tmpl mercurial/templates/monoblue/fileannotate.tmpl mercurial/templates/paper/fileannotate.tmpl mercurial/templates/spartan/fileannotate.tmpl tests/test-hgweb-symrev.t tests/test-highlight.t |
diffstat | 6 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templates/gitweb/fileannotate.tmpl Wed Jan 04 10:35:04 2017 -0800 +++ b/mercurial/templates/gitweb/fileannotate.tmpl Wed Dec 28 15:48:17 2016 -0700 @@ -28,7 +28,7 @@ annotate | <a href="{url|urlescape}diff/{symrev}/{file|urlescape}{sessionvars%urlparameter}">diff</a> | <a href="{url|urlescape}comparison/{symrev}/{file|urlescape}{sessionvars%urlparameter}">comparison</a> | -<a href="{url|urlescape}raw-annotate/{symrev}/{file|urlescape}">raw</a> | +<a href="{url|urlescape}raw-file/{symrev}/{file|urlescape}">raw</a> | <a href="{url|urlescape}help{sessionvars%urlparameter}">help</a> <br/> </div>
--- a/mercurial/templates/monoblue/fileannotate.tmpl Wed Jan 04 10:35:04 2017 -0800 +++ b/mercurial/templates/monoblue/fileannotate.tmpl Wed Dec 28 15:48:17 2016 -0700 @@ -37,7 +37,7 @@ <li class="current">annotate</li> <li><a href="{url|urlescape}diff/{symrev}/{file|urlescape}{sessionvars%urlparameter}">diff</a></li> <li><a href="{url|urlescape}comparison/{symrev}/{file|urlescape}{sessionvars%urlparameter}">comparison</a></li> - <li><a href="{url|urlescape}raw-annotate/{symrev}/{file|urlescape}">raw</a></li> + <li><a href="{url|urlescape}raw-file/{symrev}/{file|urlescape}">raw</a></li> </ul> <h2 class="no-link no-border">{file|escape}@{node|short} (annotated)</h2>
--- a/mercurial/templates/paper/fileannotate.tmpl Wed Jan 04 10:35:04 2017 -0800 +++ b/mercurial/templates/paper/fileannotate.tmpl Wed Dec 28 15:48:17 2016 -0700 @@ -28,7 +28,7 @@ <li><a href="{url|urlescape}comparison/{symrev}/{file|urlescape}{sessionvars%urlparameter}">comparison</a></li> <li class="active">annotate</li> <li><a href="{url|urlescape}log/{symrev}/{file|urlescape}{sessionvars%urlparameter}">file log</a></li> -<li><a href="{url|urlescape}raw-annotate/{symrev}/{file|urlescape}">raw</a></li> +<li><a href="{url|urlescape}raw-file/{symrev}/{file|urlescape}">raw</a></li> </ul> <ul> <li><a href="{url|urlescape}help{sessionvars%urlparameter}">help</a></li>
--- a/mercurial/templates/spartan/fileannotate.tmpl Wed Jan 04 10:35:04 2017 -0800 +++ b/mercurial/templates/spartan/fileannotate.tmpl Wed Dec 28 15:48:17 2016 -0700 @@ -13,7 +13,7 @@ <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">files</a> <a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">file</a> <a href="{url|urlescape}log/{symrev}/{file|urlescape}{sessionvars%urlparameter}">revisions</a> -<a href="{url|urlescape}raw-annotate/{symrev}/{file|urlescape}">raw</a> +<a href="{url|urlescape}raw-file/{symrev}/{file|urlescape}">raw</a> <a href="{url|urlescape}help{sessionvars%urlparameter}">help</a> </div>
--- a/tests/test-hgweb-symrev.t Wed Jan 04 10:35:04 2017 -0800 +++ b/tests/test-hgweb-symrev.t Wed Dec 28 15:48:17 2016 -0700 @@ -186,7 +186,7 @@ <li><a href="/diff/xyzzy/foo?style=paper">diff</a></li> <li><a href="/comparison/xyzzy/foo?style=paper">comparison</a></li> <li><a href="/log/xyzzy/foo?style=paper">file log</a></li> - <li><a href="/raw-annotate/xyzzy/foo">raw</a></li> + <li><a href="/raw-file/xyzzy/foo">raw</a></li> annotate foo @ 1:<a href="/rev/a7c1559b7bba?style=paper">a7c1559b7bba</a> <td class="author"><a href="/file/43c799df6e75/foo?style=paper">43c799df6e75</a> </td> <td class="author"><a href="/file/9d8c40cba617/foo?style=paper">9d8c40cba617</a> </td> @@ -381,7 +381,7 @@ <li><a href="/diff/xyzzy/foo?style=coal">diff</a></li> <li><a href="/comparison/xyzzy/foo?style=coal">comparison</a></li> <li><a href="/log/xyzzy/foo?style=coal">file log</a></li> - <li><a href="/raw-annotate/xyzzy/foo">raw</a></li> + <li><a href="/raw-file/xyzzy/foo">raw</a></li> annotate foo @ 1:<a href="/rev/a7c1559b7bba?style=coal">a7c1559b7bba</a> <td class="author"><a href="/file/43c799df6e75/foo?style=coal">43c799df6e75</a> </td> <td class="author"><a href="/file/9d8c40cba617/foo?style=coal">9d8c40cba617</a> </td> @@ -626,7 +626,7 @@ <a href="/log/xyzzy/foo?style=gitweb">revisions</a> | <a href="/diff/xyzzy/foo?style=gitweb">diff</a> | <a href="/comparison/xyzzy/foo?style=gitweb">comparison</a> | - <a href="/raw-annotate/xyzzy/foo">raw</a> | + <a href="/raw-file/xyzzy/foo">raw</a> | <td style="font-family:monospace"><a class="list" href="/rev/a7c1559b7bba?style=gitweb">a7c1559b7bba</a></td> <a class="list" href="/annotate/43c799df6e75/foo?style=gitweb"> <a class="list" href="/annotate/9d8c40cba617/foo?style=gitweb">9d8c40cba617</a></td> @@ -849,7 +849,7 @@ <li><a href="/log/xyzzy/foo?style=monoblue">revisions</a></li> <li><a href="/diff/xyzzy/foo?style=monoblue">diff</a></li> <li><a href="/comparison/xyzzy/foo?style=monoblue">comparison</a></li> - <li><a href="/raw-annotate/xyzzy/foo">raw</a></li> + <li><a href="/raw-file/xyzzy/foo">raw</a></li> <dd><a href="/rev/a7c1559b7bba?style=monoblue">a7c1559b7bba</a></dd> <a href="/annotate/43c799df6e75/foo?style=monoblue"> <a href="/annotate/9d8c40cba617/foo?style=monoblue">9d8c40cba617</a> @@ -1053,7 +1053,7 @@ <a href="/file/xyzzy/?style=spartan">files</a> <a href="/file/xyzzy/foo?style=spartan">file</a> <a href="/log/xyzzy/foo?style=spartan">revisions</a> - <a href="/raw-annotate/xyzzy/foo">raw</a> + <a href="/raw-file/xyzzy/foo">raw</a> <td><a href="/rev/a7c1559b7bba?style=spartan">a7c1559b7bba</a></td> <a href="/annotate/43c799df6e75/foo?style=spartan"> <td><a href="/annotate/9d8c40cba617/foo?style=spartan">9d8c40cba617</a></td>
--- a/tests/test-highlight.t Wed Jan 04 10:35:04 2017 -0800 +++ b/tests/test-highlight.t Wed Dec 28 15:48:17 2016 -0700 @@ -236,7 +236,7 @@ <li><a href="/comparison/tip/primes.py">comparison</a></li> <li class="active">annotate</li> <li><a href="/log/tip/primes.py">file log</a></li> - <li><a href="/raw-annotate/tip/primes.py">raw</a></li> + <li><a href="/raw-file/tip/primes.py">raw</a></li> </ul> <ul> <li><a href="/help">help</a></li>