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

Re: Avoid sending binary file diffs in post-commit commit-email.pl?

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Wed, 19 Mar 2008 13:25:05 -0700

On Wed, Mar 19, 2008 at 11:28 AM, Peter Connolly <psconnolly_at_gmail.com>
wrote:

> I'd rather not get commit-email.pl emails after committing binary
> files. The .swf in question is about 1 MB, so the diff email is even
> larger. Not being much of a Perl person, is there a simple way to
> suppress the diff emails in the case where the file type indicates a
> binary file?
>
>
I think the reason why you are seeing the binary diff is because the file in
question (.swf) has a mime-type that starts with "text/". Set it to
"application/x-Shockwafe-Flash" and it should work fine after that.
You set the mime-type by setting the svn:mime-type property on the
particular file.

Thanks,
-Hari
Received on 2008-03-19 21:32:50 CET

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.