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

Re: How to disable Binary Diffs

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-07-25 12:07:52 CEST

On Jul 25, 2007, at 03:30, Torsten Krah wrote:

> Am Mittwoch, den 25.07.2007, 10:21 +0200 schrieb Erik Huelsmann:
>> On 7/25/07, Torsten Krah wrote:
>>> Search the archive but did not found anything according binary
>>> diffs.
>>> Since i've upgraded to subversion from 1.2 to 1.4 checking in pdf
>>> binaries does result in a diff of them - this does really take
>>> time for
>>> big files and is not necessary.
>>> Where can i disable this - i don't want that binaries are diffed,
>>> its a
>>> little bit useless.
>> Are you sure you're using the right tool? There's no way to turn off
>> binary diff, because Subversion - at the repository level - doesn't
>> distinguish between 'binary' and 'non-binary' files (aren't computers
>> still binary machines these days ? :-)
> What do you mean with the "right" tool?
> "svn ci" and wait for the post-commit hook to be processed.
> The post-commit email command does diff them, where i don't expect
> them
> to be diffed.

Oh. So your problem is not with subversion but with your post-commit
email script. Which script are you using in your post-commit hook to
generate the email?

Perhaps the problem is that your PDFs are in the repository with an
svn:mime-type that begins with "text/". If so, you may wish to change
your PDFs in the repository so that their svn:mime-type is
"application/pdf". Diff programs and/or email scripts may assume that
things that begin with "text/" should have diffs shown but things
which have other mime types should not.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 25 12:07:14 2007

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

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