[PATCH] color: add support for churn --diffstat
Alexander Solovyov
piranha at piranha.org.ua
Thu Dec 3 05:25:43 CST 2009
On 2009-12-02, Martin Geisler wrote:
>> +def colorchurn(orig, ui, repo, *pats, **opts):
>> + '''run the churn command with colored output'''
>> + if not opts.get('diffstat'):
>> + return orig(ui, repo, *pats, **opts)
>> + oldwrite = extensions.wrapfunction(ui, 'write', colordiffstat)
> Ehm, I like the idea, but this does not seem to do anything :-)
> The colordiffstat function adds color to '+' and '-' characters and
> churn uses '*'s instead.
hg help churn | grep diffstat
;-)
--
Alexander
More information about the Mercurial-devel
mailing list