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

Re: SVN files content Type

From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Tue, 10 May 2011 01:35:45 -0500

On May 10, 2011, at 01:31, D, Dinoj wrote:

> Can we make it possible to contact apache content type using any
> modules..Setting the svn:mime-type to all individual files is not a good
> solution

If you want to serve the files directly out of the repository, then you must set the svn:mime-type property on each individual file.

You can use auto-props in your config file on each client to make it easy to automatically add properties when adding files. There is a script you can run to retroactively apply those properties to your existing files in the repository too. And you can write a pre-commit hook script to prevent future files from being added without their required properties.

But, consider not serving the files directly out of the repository. Instead, consider having a working copy of the appropriate subsection of the repository checked out on your web server and automatically updated at every commit. This will then use your normal Apache settings for mime type etc., and will additionally let you use server-side scripting languages like PHP if you want to.

http://subversion.apache.org/faq.html#website-auto-update
Received on 2011-05-10 08:36:27 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.