diff mercurial/hgweb/webutil.py @ 7361:9fe97eea5510

linkrev: take a revision number rather than a hash
author Matt Mackall <mpm@selenic.com>
date Wed, 12 Nov 2008 15:19:14 -0600
parents 55651328dfcc
children 1d54e2f6c0b7
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py	Thu Nov 13 10:11:32 2008 +0100
+++ b/mercurial/hgweb/webutil.py	Wed Nov 12 15:19:14 2008 -0600
@@ -126,7 +126,7 @@
         ctx = repo[changeid]
     except RepoError:
         man = repo.manifest
-        ctx = repo[man.linkrev(man.lookup(changeid))]
+        ctx = repo[man.linkrev(man.rev(man.lookup(changeid)))]
 
     return ctx