User Details
- User Since
- Dec 12 2015, 6:08 AM (466 w, 5 d)
- Availability
- Available
Dec 13 2015
Now that I think of it, the simplest possible way to get the desired effect (return 0 if diff succeeds, 1 if it does not succeed), is to use:
Dec 12 2015
Right, I think I have found the cause. The binary_safe_diff.sh does not preserve the exit code of diff, and it returns 0 even if diff returned 1. Apparently returning 0 causes Subversion 1.9 to emit the file headers again.
For me this gives:
Hmm, this seems to be caused by Subversion 1.9 (which is the default in the FreeBSD ports collection). If I use Subversion 1.8 to run the svn diff --depth empty --diff-cmd '/usr/local/lib/php/arcanist/scripts/repository/binary_safe_diff.sh' -x -U32767 foo.txt command, the output is:
Adding Eitan, since he's our Phabricator wrangler.
I think the problem is because of Subversion automatic properties. For the FreeBSD Subversion repository, automatic properties get added, like this: