# HG changeset patch # User Yuya Nishihara # Date 2015-04-08 12:04:06 # Node ID 13c42a883e8be38b58e12465ac87680f7035f9bc # Parent 47e7d5fbbf04fedb578b4e711238f5bfc7fa9031 templatekw: have {manifest} use ctx.manifestnode() for consistency changeset_printer was updated at f57640bf10d4 to not access changeset by index. diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py --- a/mercurial/templatekw.py +++ b/mercurial/templatekw.py @@ -333,9 +333,9 @@ def showlatesttagdistance(repo, ctx, tem def showmanifest(**args): repo, ctx, templ = args['repo'], args['ctx'], args['templ'] + mnode = ctx.manifestnode() args = args.copy() - args.update({'rev': repo.manifest.rev(ctx.changeset()[0]), - 'node': hex(ctx.changeset()[0])}) + args.update({'rev': repo.manifest.rev(mnode), 'node': hex(mnode)}) return templ('manifest', **args) def shownode(repo, ctx, templ, **args):