mercurial/templatekw.py
changeset 37019 c97b936d8bb5
parent 36921 32f9b7e3f056
child 37068 aa97e06a1912
equal deleted inserted replaced
37018:3e74d3cc500f 37019:c97b936d8bb5
   476         return
   476         return
   477     mrev = repo.manifestlog._revlog.rev(mnode)
   477     mrev = repo.manifestlog._revlog.rev(mnode)
   478     mhex = hex(mnode)
   478     mhex = hex(mnode)
   479     mapping = mapping.copy()
   479     mapping = mapping.copy()
   480     mapping.update({'rev': mrev, 'node': mhex})
   480     mapping.update({'rev': mrev, 'node': mhex})
   481     f = templ('manifest', **pycompat.strkwargs(mapping))
   481     f = templ.generate('manifest', mapping)
   482     # TODO: perhaps 'ctx' should be dropped from mapping because manifest
   482     # TODO: perhaps 'ctx' should be dropped from mapping because manifest
   483     # rev and node are completely different from changeset's.
   483     # rev and node are completely different from changeset's.
   484     return _mappable(f, None, f, lambda x: {'rev': mrev, 'node': mhex})
   484     return _mappable(f, None, f, lambda x: {'rev': mrev, 'node': mhex})
   485 
   485 
   486 @templatekeyword('obsfate', requires={'ui', 'repo', 'ctx', 'templ'})
   486 @templatekeyword('obsfate', requires={'ui', 'repo', 'ctx', 'templ'})