Just to be beat this into the ground, when diff returns 2, svnlook
quits immediately and doesn't generate the entire diff for the
revision, hence our commit email will be lacking info.
dd if=/dev/urandom of=file bs=1024 count=1
diff /dev/null file; echo $?
This always returns 2.
Blair
Blair Zajac wrote:
>
> It looks like diff is being called on for binary files in svnlook.
> This will mess up our commit emails when binary files are added or
> modified in the repos.
>
> rm -fr repos r
> svnadmin create repos
> svn co file://`pwd`/repos r
> cd r
> dd if=/dev/urandom of=file bs=1024 count=1
> svn add file
> svn ci -m ''
> cd ..
> svnlook repos diff
>
> This generates:
>
> Checked out revision 0.
> 1+0 records in
> 1+0 records out
> A (bin) file
> Adding (bin) file
> Transmitting file data .
> Committed revision 1.
> Added: file
> ==============================================================================
> Binary files file (original) and file differ
> svn: Error calling external program
> svn: /usr/bin/diff returned 2
>
> Best,
> Blair
>
> --
> Blair Zajac <blair@orcaware.com>
> Web and OS performance plots - http://www.orcaware.com/orca/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 9 06:56:13 2002