[PATCH 1 of 1] changeset templater: ability to display diffstat

Alexander Solovyov piranha at piranha.org.ua
Fri Jan 23 12:30:57 CST 2009


On 2009-01-23, Matt Mackall wrote:

> On Fri, 2009-01-23 at 13:57 +0200, Alexander Solovyov wrote:
>> +            diff = ''.join(patch.diff(self.repo, log.parents(changenode)[0],
>                          ^^^^
>> +            for i in patch.diffstatdata(diff.splitlines()):
>                                                 ^^^^^^^^^^

> That seems suspicious.

For me too, but:

>>> a = patch.diff(r, r['tip'].parents()[0].node(), r['tip'].node()).next()
>>> a.count('\n')
30

-- 
Alexander


More information about the Mercurial-devel mailing list