hgweb: do not access first changeset with a string
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 10 Jan 2013 18:55:50 +0100
changeset 18387 39616410aa32
parent 18386 03442135dff4
child 18388 083daee1b749
hgweb: do not access first changeset with a string There is not reason not to use an int
mercurial/hgweb/webutil.py
--- 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