comparison mercurial/hgweb/webutil.py @ 30375:11b8b740d54a

manifest: remove last uses of repo.manifest Now that all the functionality has been moved to manifestlog/manifestrevlog/etc, we can finally change all the uses of repo.manifest to use the new versions. A future diff will then delete repo.manifest. One additional change in this commit is to change repo.manifestlog to be a @storecache property instead of @property. This is required by some uses of repo.manifest require that it be settable (contrib/perf.py and the static http server). We can't do this in a prior change because we can't use @storecache on this until repo.manifest is no longer used anywhere.
author Durham Goode <durham@fb.com>
date Thu, 10 Nov 2016 02:13:19 -0800
parents dd0ff715a82c
children abb92b3d370e
comparison
equal deleted inserted replaced
30374:f2d146d1e8d6 30375:11b8b740d54a
267 267
268 def changeidctx(repo, changeid): 268 def changeidctx(repo, changeid):
269 try: 269 try:
270 ctx = repo[changeid] 270 ctx = repo[changeid]
271 except error.RepoError: 271 except error.RepoError:
272 man = repo.manifest 272 man = repo.manifestlog._revlog
273 ctx = repo[man.linkrev(man.rev(man.lookup(changeid)))] 273 ctx = repo[man.linkrev(man.rev(man.lookup(changeid)))]
274 274
275 return ctx 275 return ctx
276 276
277 def changectx(repo, req): 277 def changectx(repo, req):