diff tests/test-hgweb-commands.t @ 25605:dd89304687a3

hgweb: don't dereference symbolic revision in gitweb style Let's make gitweb 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 14:37:53 +0800
parents 32f76eccbced
children 3bb6f5f478a7
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t	Tue Jun 16 13:59:49 2015 +0800
+++ b/tests/test-hgweb-commands.t	Tue Jun 16 14:37:53 2015 +0800
@@ -1723,16 +1723,16 @@
   <div class="page_nav">
   <a href="/summary?style=gitweb">summary</a> |
   <a href="/shortlog?style=gitweb">shortlog</a> |
-  <a href="/log/3?style=gitweb">changelog</a> |
+  <a href="/log/tip?style=gitweb">changelog</a> |
   graph |
   <a href="/tags?style=gitweb">tags</a> |
   <a href="/bookmarks?style=gitweb">bookmarks</a> |
   <a href="/branches?style=gitweb">branches</a> |
-  <a href="/file/cad8025a2e87?style=gitweb">files</a> |
+  <a href="/file/tip?style=gitweb">files</a> |
   <a href="/help?style=gitweb">help</a>
   <br/>
-  <a href="/graph/3?revcount=30&style=gitweb">less</a>
-  <a href="/graph/3?revcount=120&style=gitweb">more</a>
+  <a href="/graph/tip?revcount=30&style=gitweb">less</a>
+  <a href="/graph/tip?revcount=120&style=gitweb">more</a>
   | <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a> <br/>
   </div>
   
@@ -1804,8 +1804,8 @@
   </script>
   
   <div class="page_nav">
-  <a href="/graph/3?revcount=30&style=gitweb">less</a>
-  <a href="/graph/3?revcount=120&style=gitweb">more</a>
+  <a href="/graph/tip?revcount=30&style=gitweb">less</a>
+  <a href="/graph/tip?revcount=120&style=gitweb">more</a>
   | <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/tip?style=gitweb">tip</a> 
   </div>