[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: Torsten Krah <tkrah_at_fachschaft.imn.htwk-leipzig.de>
Date: 2007-07-25 12:29:54 CEST

svnlook diff /svnrepos/dev -r 17775

is whats the post-commit does - it does indeed do the diff for pdf
files.
Question is now: How to change the mime type for subversion, thought it
might detect that automatically?

Torsten

Am Mittwoch, den 25.07.2007, 05:07 -0500 schrieb Ryan Schmidt:
> 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.
>
>

  • application/x-pkcs7-signature attachment: smime.p7s
Received on Wed Jul 25 12:29:11 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.