[MERGE REVIEW] Binary file handling
Aaron Bentley
aaron.bentley at utoronto.ca
Sun Apr 16 19:55:24 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matthieu Moy wrote:
| Aaron Bentley <aaron.bentley at utoronto.ca> writes:
|
|
|>Binary files are defined as files containing the NUL character (\x00) in
|>their first 1024 bytes. Reportedly, this is the heuristic used by diff.
|>~ This does, unfortunately, mean that UTF-16 files will be treated as
|>binary.
|
|
| Perhaps it would be worth adding a way to tell bzr "this is text/this
| is binary" in the user-interface (and this means a meta-info in the
| repository)?
Martin felt that approach was too baroque, and that we should do it
this way.
It's worth mentioning that mergers should only deal with whatever *they*
consider to be text, and diff3 will fail rather spectacularly when asked
to deal with files containing NUL. So to some extent, this mechanism
protects mergers from files they can't sensibly handle, and allowing
users to override that wouldn't be good.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEQpMb0F+nu1YWqI0RAnfuAJ4lwFNDrUnGXEWStobyZyo34qQUTQCeJL5h
ropDz4+7qXdXOMjgeH74DaE=
=C95j
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list