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

Re: commit-email.pl: supressing diff for certain filetypes?

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-03-09 23:03:46 CET

On Mar 9, 2006, at 22:20, Sean McBride wrote:

> I am using the commit-email.pl script to receive emails about
> changes to
> our repository. It is great!
> The only problem is that it likes to diff .pdf files, resulting in
> huge
> emails of mostly hex garbage.
> Can it be told to only diff files with (or without) certain filename
> extensions?

Subversion will only diff files with text/* MIME types, so you need
to ensure that your PDFs get into the repository with the application/
pdf MIME type. Subversion's auto-props and pre-commit hook features
can help you get this set properly on all new files:


For files already in your repository, there are scripts which can help:



In fact, in trying to test this problem just now, PDFs do get added
as application/octet-stream for me, so svnlook (and therefore commit-
email.pl) does not produce a diff. Perhaps this is a recent change
(I'm using Subversion 1.3.0) or perhaps there's another reason why
your PDFs are getting into your repository with a text/* MIME type.
Either way, you can fix it with the above.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 9 23:05:15 2006

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