[PATCH 0 of 1] diffstat implementation in python

Paul Moore p.f.moore at gmail.com
Sun Dec 21 08:20:22 CST 2008


2008/12/21 Paul Moore <p.f.moore at gmail.com>:
> 2008/12/21 Alexander Solovyov <piranha at piranha.org.ua>:
>> This is python implementation of diffstat, which makes it work much faster
>> on small patches (no overhead of calling a system program) and removes
>> dependency on 'diffstat' program. Additionally it is possible to retrieve
>> collected information through an attributes of a diffstat object, which
>> removes a need to parse diffstat output if anyone will need it.
> [...]
>> As system diffstat works better than a python's on large volumes of data,
>> maybe it is worth it to check length of an input and switch to calling
>> 'diffstat' command in case if input is large enough. Maybe this limit should
>> be configurable.
>
> Presumably, this is also going to help on Windows, where diffstat is
> not generally available. (In fact, I don't know of a diffstat
> implementation for Windows).
>
> So I'm +1 on this.
> Paul.

Sorry, should have sent this to the list.
Paul


More information about the Mercurial-devel mailing list