diff mercurial/hgweb/hgweb_mod.py @ 3433:6bd676ee8b99

Explicitly use "tip" in revision navigation. Rationale: the tip revision is a moving target and if somebody wants tip, it should be delivered.
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 16 Oct 2006 22:44:44 +0200
parents 9b1c126b74cd
children 3505fcd5a231
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Mon Oct 16 15:38:53 2006 -0300
+++ b/mercurial/hgweb/hgweb_mod.py	Mon Oct 16 22:44:44 2006 +0200
@@ -60,7 +60,7 @@
             for label, node in l:
                 yield {"label": label, "node": node}
 
-            yield {"label": "tip", "node": hex(nodefunc('-1').node())}
+            yield {"label": "tip", "node": "tip"}
         except hg.RepoError:
             pass