changeset 18387:39616410aa32

hgweb: do not access first changeset with a string There is not reason not to use an int
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 10 Jan 2013 18:55:50 +0100
parents 03442135dff4
children 083daee1b749
files mercurial/hgweb/webutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py	Tue Jan 15 23:30:10 2013 +0100
+++ b/mercurial/hgweb/webutil.py	Thu Jan 10 18:55:50 2013 +0100
@@ -66,7 +66,7 @@
 
     navafter.append(("tip", "tip"))
     try:
-        navbefore.insert(0, ("(0)", hex(nodefunc('0').node())))
+        navbefore.insert(0, ("(0)", hex(nodefunc(0).node())))
     except error.RepoError:
         pass