Mercurial > hg
changeset 24676:13c42a883e8b
templatekw: have {manifest} use ctx.manifestnode() for consistency
changeset_printer was updated at f57640bf10d4 to not access changeset by
index.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 08 Apr 2015 21:04:06 +0900 |
parents | 47e7d5fbbf04 |
children | 9df7ffd706d1 |
files | mercurial/templatekw.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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):