mercurial/hgweb/webcommands.py
changeset 7361 9fe97eea5510
parent 7345 55651328dfcc
child 7409 0fa3b6677027
--- a/mercurial/hgweb/webcommands.py	Thu Nov 13 10:11:32 2008 +0100
+++ b/mercurial/hgweb/webcommands.py	Wed Nov 12 15:19:14 2008 -0600
@@ -526,13 +526,13 @@
         if not numrevs: # file doesn't exist at all
             raise
         rev = webutil.changectx(web.repo, req).rev()
-        first = fl.linkrev(fl.node(0))
+        first = fl.linkrev(0)
         if rev < first: # current rev is from before file existed
             raise
         frev = numrevs - 1
-        while fl.linkrev(fl.node(frev)) > rev:
+        while fl.linkrev(frev) > rev:
             frev -= 1
-        fctx = web.repo.filectx(f, fl.linkrev(fl.node(frev)))
+        fctx = web.repo.filectx(f, fl.linkrev(frev))
 
     count = fctx.filerev() + 1
     pagelen = web.maxshortchanges