diff tests/test-hgweb-descend-empties.t @ 25604:0cdcbc477cac

hgweb: don't dereference symbolic revision in monoblue style Let's make monoblue 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 13:59:49 +0800
parents 1cac419ab831
children dd89304687a3
line wrap: on
line diff
--- a/tests/test-hgweb-descend-empties.t	Tue Jun 16 11:52:10 2015 +0800
+++ b/tests/test-hgweb-descend-empties.t	Tue Jun 16 13:59:49 2015 +0800
@@ -294,7 +294,7 @@
               <li><a href="/summary?style=monoblue">summary</a></li>
               <li><a href="/shortlog?style=monoblue">shortlog</a></li>
               <li><a href="/changelog?style=monoblue">changelog</a></li>
-              <li><a href="/graph/c9f45f7a1659?style=monoblue">graph</a></li>
+              <li><a href="/graph/tip?style=monoblue">graph</a></li>
               <li><a href="/tags?style=monoblue">tags</a></li>
               <li><a href="/bookmarks?style=monoblue">bookmarks</a></li>
               <li><a href="/branches?style=monoblue">branches</a></li>
@@ -304,7 +304,7 @@
       </div>
   
       <ul class="submenu">
-          <li><a href="/rev/c9f45f7a1659?style=monoblue">changeset</a></li>
+          <li><a href="/rev/tip?style=monoblue">changeset</a></li>
           
       </ul>
   
@@ -316,7 +316,7 @@
               <td>drwxr-xr-x</td>
               <td></td>
               <td></td>
-              <td><a href="/file/c9f45f7a1659/?style=monoblue">[up]</a></td>
+              <td><a href="/file/tip/?style=monoblue">[up]</a></td>
               <td class="link">&nbsp;</td>
           </tr>
           
@@ -325,30 +325,30 @@
   <td></td>
   <td></td>
   <td>
-  <a href="/file/c9f45f7a1659/a1?style=monoblue">a1</a>
-  <a href="/file/c9f45f7a1659/a1/a2/a3/a4?style=monoblue">a2/a3/a4</a>
+  <a href="/file/tip/a1?style=monoblue">a1</a>
+  <a href="/file/tip/a1/a2/a3/a4?style=monoblue">a2/a3/a4</a>
   </td>
-  <td><a href="/file/c9f45f7a1659/a1?style=monoblue">files</a></td>
+  <td><a href="/file/tip/a1?style=monoblue">files</a></td>
   </tr>
   <tr class="parity0">
   <td>drwxr-xr-x</td>
   <td></td>
   <td></td>
   <td>
-  <a href="/file/c9f45f7a1659/b1?style=monoblue">b1</a>
-  <a href="/file/c9f45f7a1659/b1/b2/b3?style=monoblue">b2/b3</a>
+  <a href="/file/tip/b1?style=monoblue">b1</a>
+  <a href="/file/tip/b1/b2/b3?style=monoblue">b2/b3</a>
   </td>
-  <td><a href="/file/c9f45f7a1659/b1?style=monoblue">files</a></td>
+  <td><a href="/file/tip/b1?style=monoblue">files</a></td>
   </tr>
   <tr class="parity1">
   <td>drwxr-xr-x</td>
   <td></td>
   <td></td>
   <td>
-  <a href="/file/c9f45f7a1659/d1?style=monoblue">d1</a>
-  <a href="/file/c9f45f7a1659/d1/d2?style=monoblue">d2</a>
+  <a href="/file/tip/d1?style=monoblue">d1</a>
+  <a href="/file/tip/d1/d2?style=monoblue">d2</a>
   </td>
-  <td><a href="/file/c9f45f7a1659/d1?style=monoblue">files</a></td>
+  <td><a href="/file/tip/d1?style=monoblue">files</a></td>
   </tr>
           
       </table>