comparison tests/test-hgweb-commands.t @ 25606:3bb6f5f478a7

hgweb: don't dereference symbolic revision in paper & coal style (issue2296) Let's make paper (and coal, since it borrows so much from paper) templates use symbolic revision in navigation links. The majority of links (log, filelog, annotate, etc) still use node hashes. Some pages don't have permanent links to current node hash (so it's not very easy to go from /rev/tip to /rev/<tip hash>), this will be addressed in future patches.
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 16 Jun 2015 16:07:39 +0800
parents dd89304687a3
children 63be46407a50
comparison
equal deleted inserted replaced
25605:dd89304687a3 25606:3bb6f5f478a7
708 <a href="http://mercurial.selenic.com/"> 708 <a href="http://mercurial.selenic.com/">
709 <img src="/static/hglogo.png" alt="mercurial" /></a> 709 <img src="/static/hglogo.png" alt="mercurial" /></a>
710 </div> 710 </div>
711 <ul> 711 <ul>
712 <li class="active">log</li> 712 <li class="active">log</li>
713 <li><a href="/graph/cad8025a2e87">graph</a></li> 713 <li><a href="/graph/tip">graph</a></li>
714 <li><a href="/tags">tags</a></li> 714 <li><a href="/tags">tags</a></li>
715 <li><a href="/bookmarks">bookmarks</a></li> 715 <li><a href="/bookmarks">bookmarks</a></li>
716 <li><a href="/branches">branches</a></li> 716 <li><a href="/branches">branches</a></li>
717 </ul> 717 </ul>
718 <ul> 718 <ul>
719 <li><a href="/rev/cad8025a2e87">changeset</a></li> 719 <li><a href="/rev/tip">changeset</a></li>
720 <li><a href="/file/cad8025a2e87">browse</a></li> 720 <li><a href="/file/tip">browse</a></li>
721 </ul> 721 </ul>
722 <ul> 722 <ul>
723 723
724 </ul> 724 </ul>
725 <ul> 725 <ul>
742 <div id="hint">Find changesets by keywords (author, files, the commit message), revision 742 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
743 number or hash, or <a href="/help/revsets">revset expression</a>.</div> 743 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
744 </form> 744 </form>
745 745
746 <div class="navigate"> 746 <div class="navigate">
747 <a href="/shortlog/3?revcount=30">less</a> 747 <a href="/shortlog/tip?revcount=30">less</a>
748 <a href="/shortlog/3?revcount=120">more</a> 748 <a href="/shortlog/tip?revcount=120">more</a>
749 | rev 3: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a> 749 | rev 3: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a>
750 </div> 750 </div>
751 751
752 <table class="bigtable"> 752 <table class="bigtable">
753 <thead> 753 <thead>
793 793
794 </tbody> 794 </tbody>
795 </table> 795 </table>
796 796
797 <div class="navigate"> 797 <div class="navigate">
798 <a href="/shortlog/3?revcount=30">less</a> 798 <a href="/shortlog/tip?revcount=30">less</a>
799 <a href="/shortlog/3?revcount=120">more</a> 799 <a href="/shortlog/tip?revcount=120">more</a>
800 | rev 3: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a> 800 | rev 3: <a href="/shortlog/2ef0ac749a14">(0)</a> <a href="/shortlog/tip">tip</a>
801 </div> 801 </div>
802 802
803 <script type="text/javascript"> 803 <script type="text/javascript">
804 ajaxScrollInit( 804 ajaxScrollInit(
843 <div class="logo"> 843 <div class="logo">
844 <a href="http://mercurial.selenic.com/"> 844 <a href="http://mercurial.selenic.com/">
845 <img src="/static/hglogo.png" alt="mercurial" /></a> 845 <img src="/static/hglogo.png" alt="mercurial" /></a>
846 </div> 846 </div>
847 <ul> 847 <ul>
848 <li><a href="/shortlog/2ef0ac749a14">log</a></li> 848 <li><a href="/shortlog/0">log</a></li>
849 <li><a href="/graph/2ef0ac749a14">graph</a></li> 849 <li><a href="/graph/0">graph</a></li>
850 <li><a href="/tags">tags</a></li> 850 <li><a href="/tags">tags</a></li>
851 <li><a href="/bookmarks">bookmarks</a></li> 851 <li><a href="/bookmarks">bookmarks</a></li>
852 <li><a href="/branches">branches</a></li> 852 <li><a href="/branches">branches</a></li>
853 </ul> 853 </ul>
854 <ul> 854 <ul>
855 <li class="active">changeset</li> 855 <li class="active">changeset</li>
856 <li><a href="/raw-rev/2ef0ac749a14">raw</a></li> 856 <li><a href="/raw-rev/0">raw</a></li>
857 <li><a href="/file/2ef0ac749a14">browse</a></li> 857 <li><a href="/file/0">browse</a></li>
858 </ul> 858 </ul>
859 <ul> 859 <ul>
860 860
861 </ul> 861 </ul>
862 <ul> 862 <ul>
1268 <div class="logo"> 1268 <div class="logo">
1269 <a href="http://mercurial.selenic.com/"> 1269 <a href="http://mercurial.selenic.com/">
1270 <img src="/static/hglogo.png" alt="mercurial" /></a> 1270 <img src="/static/hglogo.png" alt="mercurial" /></a>
1271 </div> 1271 </div>
1272 <ul> 1272 <ul>
1273 <li><a href="/shortlog/a4f92ed23982">log</a></li> 1273 <li><a href="/shortlog/1">log</a></li>
1274 <li><a href="/graph/a4f92ed23982">graph</a></li> 1274 <li><a href="/graph/1">graph</a></li>
1275 <li><a href="/tags">tags</a></li> 1275 <li><a href="/tags">tags</a></li>
1276 <li><a href="/bookmarks">bookmarks</a></li> 1276 <li><a href="/bookmarks">bookmarks</a></li>
1277 <li><a href="/branches">branches</a></li> 1277 <li><a href="/branches">branches</a></li>
1278 </ul> 1278 </ul>
1279 <ul> 1279 <ul>
1280 <li><a href="/rev/a4f92ed23982">changeset</a></li> 1280 <li><a href="/rev/1">changeset</a></li>
1281 <li><a href="/file/a4f92ed23982/">browse</a></li> 1281 <li><a href="/file/1/">browse</a></li>
1282 </ul> 1282 </ul>
1283 <ul> 1283 <ul>
1284 <li class="active">file</li> 1284 <li class="active">file</li>
1285 <li><a href="/file/tip/foo">latest</a></li> 1285 <li><a href="/file/tip/foo">latest</a></li>
1286 <li><a href="/diff/a4f92ed23982/foo">diff</a></li> 1286 <li><a href="/diff/1/foo">diff</a></li>
1287 <li><a href="/comparison/a4f92ed23982/foo">comparison</a></li> 1287 <li><a href="/comparison/1/foo">comparison</a></li>
1288 <li><a href="/annotate/a4f92ed23982/foo">annotate</a></li> 1288 <li><a href="/annotate/1/foo">annotate</a></li>
1289 <li><a href="/log/a4f92ed23982/foo">file log</a></li> 1289 <li><a href="/log/1/foo">file log</a></li>
1290 <li><a href="/raw-file/a4f92ed23982/foo">raw</a></li> 1290 <li><a href="/raw-file/1/foo">raw</a></li>
1291 </ul> 1291 </ul>
1292 <ul> 1292 <ul>
1293 <li><a href="/help">help</a></li> 1293 <li><a href="/help">help</a></li>
1294 </ul> 1294 </ul>
1295 </div> 1295 </div>
1392 <div class="logo"> 1392 <div class="logo">
1393 <a href="http://mercurial.selenic.com/"> 1393 <a href="http://mercurial.selenic.com/">
1394 <img src="/static/hglogo.png" alt="mercurial" /></a> 1394 <img src="/static/hglogo.png" alt="mercurial" /></a>
1395 </div> 1395 </div>
1396 <ul> 1396 <ul>
1397 <li><a href="/shortlog/1d22e65f027e">log</a></li> 1397 <li><a href="/shortlog/2">log</a></li>
1398 <li><a href="/graph/1d22e65f027e">graph</a></li> 1398 <li><a href="/graph/2">graph</a></li>
1399 <li><a href="/tags">tags</a></li> 1399 <li><a href="/tags">tags</a></li>
1400 <li><a href="/bookmarks">bookmarks</a></li> 1400 <li><a href="/bookmarks">bookmarks</a></li>
1401 <li><a href="/branches">branches</a></li> 1401 <li><a href="/branches">branches</a></li>
1402 </ul> 1402 </ul>
1403 <ul> 1403 <ul>
1404 <li><a href="/rev/1d22e65f027e">changeset</a></li> 1404 <li><a href="/rev/2">changeset</a></li>
1405 <li><a href="/file/1d22e65f027e/">browse</a></li> 1405 <li><a href="/file/2/">browse</a></li>
1406 </ul> 1406 </ul>
1407 <ul> 1407 <ul>
1408 <li class="active">file</li> 1408 <li class="active">file</li>
1409 <li><a href="/file/tip/foo">latest</a></li> 1409 <li><a href="/file/tip/foo">latest</a></li>
1410 <li><a href="/diff/1d22e65f027e/foo">diff</a></li> 1410 <li><a href="/diff/2/foo">diff</a></li>
1411 <li><a href="/comparison/1d22e65f027e/foo">comparison</a></li> 1411 <li><a href="/comparison/2/foo">comparison</a></li>
1412 <li><a href="/annotate/1d22e65f027e/foo">annotate</a></li> 1412 <li><a href="/annotate/2/foo">annotate</a></li>
1413 <li><a href="/log/1d22e65f027e/foo">file log</a></li> 1413 <li><a href="/log/2/foo">file log</a></li>
1414 <li><a href="/raw-file/1d22e65f027e/foo">raw</a></li> 1414 <li><a href="/raw-file/2/foo">raw</a></li>
1415 </ul> 1415 </ul>
1416 <ul> 1416 <ul>
1417 <li><a href="/help">help</a></li> 1417 <li><a href="/help">help</a></li>
1418 </ul> 1418 </ul>
1419 </div> 1419 </div>