# HG changeset patch # User Yuya Nishihara # Date 1428494646 -32400 # 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 -r 47e7d5fbbf04 -r 13c42a883e8b mercurial/templatekw.py --- a/mercurial/templatekw.py Fri Apr 10 00:36:42 2015 +0900 +++ b/mercurial/templatekw.py Wed Apr 08 21:04:06 2015 +0900 @@ -333,9 +333,9 @@ 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):