[MERGE] Implement diff --using natively

Aaron Bentley aaron at aaronbentley.com
Fri Dec 28 16:34:16 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aaron Bentley wrote:
> But it might be safe to
> work *best* with tools that emulate gnu diff, and assume exit code 2
> indicates failure, without assuming that 0 or 1 indicate success.

Actually, we can't even do that.  Because exit code 2 can mean "bad
arguments" or it can mean "inputs were binary files".  You have to parse
the output to know which, and that's just not a reasonable way of
handling the general case.

When we start to customize for particular tools, we can add this sort of
detection.  For now, I think we should leave it out.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHdSWI0F+nu1YWqI0RAvaEAKCEB/TxJCSz97Y0MkQHu2xtHyDvYgCfRwF8
NyW7V/3kC+lD6mmJ0loNAJk=
=ncLS
-----END PGP SIGNATURE-----



More information about the bazaar mailing list