# HG changeset patch # User Matthew Turk # Date 2013-11-15 23:08:50 # Node ID 519120a96c636953e6ebe8567ef6e9285093cd80 # Parent f4b3bdc3019e8be6ba4791b297e0d6990fe0cb62 template: change extras to use showlist rather than manual templ call. This enables start_extras and end_extras in template maps. diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py --- a/mercurial/templatekw.py +++ b/mercurial/templatekw.py @@ -221,11 +221,8 @@ def showdiffstat(repo, ctx, templ, **arg def showextras(**args): """:extras: List of dicts with key, value entries of the 'extras' field of this changeset.""" - templ = args['templ'] - for key, value in sorted(args['ctx'].extra().items()): - args = args.copy() - args.update(dict(key=key, value=value)) - yield templ('extra', **args) + yield showlist('extra', sorted(dict(key=a, value=b) + for (a, b) in args['ctx'].extra().items()), **args) def showfileadds(**args): """:file_adds: List of strings. Files added by this changeset."""