Are revlog diff calculated as "text" ALWAYS?
Jesus Cea
jcea at jcea.es
Tue May 13 22:39:27 UTC 2014
On 13/05/14 16:12, Kastner Masilko, Friedrich wrote:
> I always was under the impression that Mercurial uses the bdiff.c
> implementation, which works for binaries just as well. Seems like
> that changed. I can't see how that behavior is intended, though.
Mercurial splits the input files in lines ended by LINEFEED ("\n") and
then do the DIFF algorithm on them. That why my example explicitly avoid
LINEFEEDs *ON PURPOSE*, to show the effect.
The key is function "splitnewlines()" in file "mdiff.py".
--
Jesús Cea Avión _/_/ _/_/_/ _/_/_/
jcea at jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/
Twitter: @jcea _/_/ _/_/ _/_/_/_/_/
jabber / xmpp:jcea at jabber.org _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 538 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140514/a571a58f/attachment.asc>
More information about the Mercurial
mailing list