You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Peter Connolly <ps...@gmail.com> on 2008/03/19 18:28:33 UTC

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

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?

TIA, pc

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

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

Posted by Hari Kodungallur <hk...@gmail.com>.
On Wed, Mar 19, 2008 at 2:46 PM, Peter Connolly <ps...@gmail.com>
wrote:

> Interesting...  So, reading through the reference manual I see that I
> can set this up as a runtime  configuration option in the
> /etc/subversion/config file.  Too bad I can't seem to google any
> examples of a 'config' file.  Short of that, I guess I'll just svn
> propset instead.  But it's weird that the distribution (1.4.3-2)
> doesn't come with sample 'config' and 'servers' files.  :-/
>


Actually the config file is user specific and is in your home directory.
$HOME/.subversion/config. And it comes with commented out examples
([auto-props] section).

Note that the auto-props affect only files that are added by the user. Any
file that is already added and you are just committing an updated version
will not be affected. To set the auto-prop configs on already added files
you can use the contrib script that comes with the source distribution
(file: contrib/client-side/svn_apply_autoprops.py).

Regards,
-Hari

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

Posted by Peter Connolly <ps...@gmail.com>.
Interesting...  So, reading through the reference manual I see that I
can set this up as a runtime  configuration option in the
/etc/subversion/config file.  Too bad I can't seem to google any
examples of a 'config' file.  Short of that, I guess I'll just svn
propset instead.  But it's weird that the distribution (1.4.3-2)
doesn't come with sample 'config' and 'servers' files.  :-/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

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

Posted by Hari Kodungallur <hk...@gmail.com>.
On Wed, Mar 19, 2008 at 11:28 AM, Peter Connolly <ps...@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