comparison mercurial/templatekw.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 d1f5f158768e
children 5dde81de1e6d
comparison
equal deleted inserted replaced
30374:f2d146d1e8d6 30375:11b8b740d54a
456 mnode = ctx.manifestnode() 456 mnode = ctx.manifestnode()
457 if mnode is None: 457 if mnode is None:
458 # just avoid crash, we might want to use the 'ff...' hash in future 458 # just avoid crash, we might want to use the 'ff...' hash in future
459 return 459 return
460 args = args.copy() 460 args = args.copy()
461 args.update({'rev': repo.manifest.rev(mnode), 'node': hex(mnode)}) 461 args.update({'rev': repo.manifestlog._revlog.rev(mnode),
462 'node': hex(mnode)})
462 return templ('manifest', **args) 463 return templ('manifest', **args)
463 464
464 def shownames(namespace, **args): 465 def shownames(namespace, **args):
465 """helper method to generate a template keyword for a namespace""" 466 """helper method to generate a template keyword for a namespace"""
466 ctx = args['ctx'] 467 ctx = args['ctx']