[PATCH] mdiff: Compare content of binary files directly
Patrick Mézard
pmezard at gmail.com
Sat Aug 9 12:26:31 CDT 2008
Martin Geisler a écrit :
> # HG changeset patch
> # User Martin Geisler <mg at daimi.au.dk>
> # Date 1218240622 -7200
> # Node ID 14cc0aa138d3138b77900a0310c7cdd0d7093551
> # Parent 08a88ccca36107c2f3ec572fb83d1b1acc140d72
> mdiff: Compare content of binary files directly
>
> A plain Python string comparison stops when the first mismatch is
> found, whereas the call to md5 would need to compute the hash over the
> entire string and only then do the comparison.
In crew: http://hg.intevation.org/mercurial/crew/rev/13fe85fe396b, thanks!
--
Patrick Mézard
More information about the Mercurial-devel
mailing list