Are revlog diff calculated as "text" ALWAYS?
Kastner Masilko, Friedrich
kastner-masilko at at.festo.com
Tue May 13 14:12:06 UTC 2014
> From: mercurial-bounces at selenic.com [mailto:mercurial-bounces at selenic.com] On Behalf Of Jesus Cea
>
> Try the "echo -n 'X' >>z" version to avoid inserting linefeeds.
> Sorry, my mistake.
Indeed. Doing that, I too get snapshots (instead of deltas) all the way through. Even if I only change one byte within the file, a snapshot is taken.
> My point is that since Mercurial already recognize files as binary, and
> refuse to show a diff if you doesn't specify "hg diff --text", we could
> use a binary diff backend anyway in those cases.
AFAIK, internally Mercurial does not make a difference if the file is binary or not (what defines "binary", anyway?). However, the front-end commands that display diffs are running a heuristic to decide whether it might be binary-only content and therefore probably not worth printing.
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.
regards,
Fritz
Development Software Systems
Festo Gesellschaft m.b.H.
Linzer Strasse 227
Austria - 1140 Wien
Firmenbuch Wien
FN 38435y
UID: ATU14650108
Tel: +43(1)91075-198
Fax:
www.festo.at
Der Inhalt dieser E-Mail und moeglicher Anhaenge sind ausschliesslich fuer den bezeichneten Adressaten bestimmt.
Jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail und
moeglicher Anhaenge durch unberechtigte Dritte ist unzulaessig. Wir bitten Sie, sich mit dem Absender der E-Mail in
Verbindung zu setzen, falls Sie nicht der Adressat dieser E-Mail sind sowie das Material von Ihrem Computer zu loeschen.
This e-mail and any attachments are confidential and intended solely for the addressee. The perusal, publication, copying or
dissemination of the contents of this e-mail by unauthorised third parties is prohibited. If you are not the intended recipient of this
e-mail, please delete it and immediately notify the sender.
More information about the Mercurial
mailing list