[PATCH] color: add support for churn --diffstat
Martin Geisler
mg at lazybytes.net
Thu Dec 3 12:23:40 UTC 2009
"Alexander Solovyov" <piranha at piranha.org.ua> writes:
> 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
>
> ;-)
Oh :-)
--
Martin Geisler
VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
More information about the Mercurial-devel
mailing list