mercurial/hgweb/webutil.py
changeset 7361 9fe97eea5510
parent 7345 55651328dfcc
child 7637 1d54e2f6c0b7
equal deleted inserted replaced
7360:42f1b8cb9a60 7361:9fe97eea5510
   124 
   124 
   125     try:
   125     try:
   126         ctx = repo[changeid]
   126         ctx = repo[changeid]
   127     except RepoError:
   127     except RepoError:
   128         man = repo.manifest
   128         man = repo.manifest
   129         ctx = repo[man.linkrev(man.lookup(changeid))]
   129         ctx = repo[man.linkrev(man.rev(man.lookup(changeid)))]
   130 
   130 
   131     return ctx
   131     return ctx
   132 
   132 
   133 def filectx(repo, req):
   133 def filectx(repo, req):
   134     path = cleanpath(repo, req.form['file'][0])
   134     path = cleanpath(repo, req.form['file'][0])