# HG changeset patch # User Thomas Arendsen Hein # Date 2006-10-16 20:44:44 # Node ID 6bd676ee8b9914c349c34212728cecbb03fef73b # Parent bb00a5a92c30f0fa2f91edc39cfbeef654aa2c11 Explicitly use "tip" in revision navigation. Rationale: the tip revision is a moving target and if somebody wants tip, it should be delivered. diff --git a/mercurial/hgweb/hgweb_mod.py b/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