Explicitly use "tip" in revision navigation.
authorThomas Arendsen Hein <thomas@intevation.de>
Mon, 16 Oct 2006 22:44:44 +0200
changeset 3427 6bd676ee8b99
parent 3426 bb00a5a92c30
child 3428 7012c889e8f2
Explicitly use "tip" in revision navigation. Rationale: the tip revision is a moving target and if somebody wants tip, it should be delivered.
mercurial/hgweb/hgweb_mod.py
--- 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