Explicitly use "tip" in revision navigation.
authorThomas Arendsen Hein <thomas@intevation.de>
Mon, 16 Oct 2006 22:44:44 +0200
changeset 3417 6bd676ee8b99
parent 3416 bb00a5a92c30
child 3418 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
+++ b/mercurial/hgweb/hgweb_mod.py
@@ -60,7 +60,7 @@ def revnavgen(pos, pagelen, limit, nodef
             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