I am aware that if you set the
svn:mime-type Subversion property on a
.html file to
text/html then when viewing the file in a browser through the Subversion module in Apache httpd it will be served with a
Content-Type: text/html header, enabling the browser to render it as HTML rather than plain text.
However, I am looking for a way to do this without using the
I'm aware that you can configure your svn client to automatically add the property - this is not what I want, as I do not want to ensure all users have these settings. I'm also aware that I could create a pre-commit hook that rejects the commit if the properties are not set, in order to force users to set the property - I might fall back to that, but I'm looking for something less intrusive.
I'm also aware that I could use a post-commit hook to add the properties automatically on the server-side. I'd rather not do that (as users then have to update immediately after their commit, and it's not trivial to write) - I'm looking for a better alternative. Perhaps something with rewrite rules in the Apache server?