hgweb: fix tip so that it doesn't need refreshing
authormpm@selenic.com
Mon, 30 May 2005 10:21:21 -0800
changeset 198 c88ef31fb5c00b4b2162d1146e3c76c0df3fddd2
parent 197 b388603984fc101875d3c6ff0ed319001bf4aac0
child 199 2424676edd8cac7bb85454da79324d5643257105
push id1
push usergszorc@mozilla.com
push dateWed, 18 Mar 2015 16:34:57 +0000
hgweb: fix tip so that it doesn't need refreshing -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hgweb: fix tip so that it doesn't need refreshing manifest hash: 5bf1837a29c5612872ab206053f9d15e899e3664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCm1mhywK+sNU5EO8RAjdQAKCLrRFv2/rfHYNI2tFvF5HKINaTjQCfRhxo ca39aZ0SaNeCBqc1nMPOTcw= =4pHG -----END PGP SIGNATURE-----
hg
mercurial/hgweb.py
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -213,17 +213,17 @@ class hgweb:
                 if pos + f < count - (f/2): l.append(("+" + r, pos + f))
                 if pos - f >= 0 + (f/2): l.insert(0, ("-" + r, pos - f))
 
             yield self.t("naventry", rev = 0, label="(0)")
                     
             for label, rev in l:
                 yield self.t("naventry", label = label, rev = rev)
 
-            yield self.t("naventry", rev = count - 1, label="tip")
+            yield self.t("naventry", label="tip")
 
         def changelist():
             parity = (start - end) & 1
             cl = self.repo.changelog
             l = [] # build a list in forward order for efficiency
             for i in range(start, end + 1):
                 n = cl.node(i)
                 changes = cl.read(n)