comparison 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
comparison
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])