##// END OF EJS Templates
template: modify showextras to return a hybrid...
Matthew Turk -
r20183:de7e6c48 default
parent child Browse files
Show More
@@ -222,8 +222,10 def showdiffstat(repo, ctx, templ, **arg
222 def showextras(**args):
222 def showextras(**args):
223 """:extras: List of dicts with key, value entries of the 'extras'
223 """:extras: List of dicts with key, value entries of the 'extras'
224 field of this changeset."""
224 field of this changeset."""
225 yield showlist('extra', sorted(dict(key=a, value=b)
225 extras = args['ctx'].extra()
226 for (a, b) in args['ctx'].extra().items()), **args)
226 c = [{'key': x[0], 'value': x[1]} for x in sorted(extras.items())]
227 f = _showlist('extra', c, plural='extras', **args)
228 return _hybrid(f, c, lambda x: '%s=%s' % (x['key'], x['value']))
227
229
228 def showfileadds(**args):
230 def showfileadds(**args):
229 """:file_adds: List of strings. Files added by this changeset."""
231 """:file_adds: List of strings. Files added by this changeset."""
General Comments 0
You need to be logged in to leave comments. Login now