mercurial/hgweb/webcommands.py
branchstable
changeset 18477 010d6d3fcfee
parent 18428 8c10f760ca34
child 18478 886936ecc21b
--- a/mercurial/hgweb/webcommands.py	Fri Jan 25 16:11:16 2013 -0600
+++ b/mercurial/hgweb/webcommands.py	Fri Jan 25 14:50:18 2013 -0600
@@ -188,7 +188,7 @@
         if 'rev' in req.form:
             hi = req.form['rev'][0]
         else:
-            hi = len(web.repo) - 1
+            hi = 'tip'
         try:
             ctx = web.repo[hi]
         except error.RepoError: