# HG changeset patch # User David M. Carr # Date 1347763834 14400 # Node ID 772b3764d3e8ab05d48032c18b161d403824acad # Parent 2eac9641496dde7525293edd6cb9123886c3a11b formatter: add base implementation of data method Previously, nothing was done with the passed in values, which clearly wasn't the intention. diff -r 2eac9641496d -r 772b3764d3e8 mercurial/formatter.py --- a/mercurial/formatter.py Tue Sep 18 15:36:58 2012 +0200 +++ b/mercurial/formatter.py Sat Sep 15 22:50:34 2012 -0400 @@ -26,6 +26,8 @@ self._item = {} def data(self, **data): '''insert data into item that's not shown in default output''' + for k, v in data.iteritems(): + self._item[k] = v def write(self, fields, deftext, *fielddata, **opts): '''do default text output while assigning data to item''' for k, v in zip(fields.split(), fielddata):