[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnlook diff fails on binary files:

From: Blair Zajac <blair_at_orcaware.com>
Date: 2002-11-09 06:55:49 CET

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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.