--- 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