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

Re: MIME types

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Thu, 18 Sep 2008 00:00:56 -0500

On Sep 17, 2008, at 09:33, Greg Thomas wrote:

>>> After two questions on the Subclipse list/group today, I started
>>> reading
>>> about how Subversion handles mime types. It seems like I have to
>>> provide it with a mime-types-mapping file. A file like that is
>>> present
>>> in Gnome, though. Why doesn’t Subversion consider this file by
>>> default?
>>> I suppose KDE has a similar ssystem set up? Why ask the user to
>>> configure this file by hand?
>
> I wonder if a post-commit hook to add an appropriate MIME type to all
> files just "A"dded is the easiest option?

No, it would not. The server would have to maintain its own working
copy and commit a second revision immediately after a revision that
added a file without a mime type.

It is better to make the committer use the proper mime type in the
first place. You can automate this on the client side using the auto-
props section of the config file. You can enforce it on the server
side by writing a pre-commit hook to reject any commit that does not
match your requirements.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-18 07:01:23 CEST

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.