Re: Bug report: The auto-props setting of svn:mime-type is impossible to avoid.
From: Ryan Schmidt <subversion-2015_at_ryandesign.com>
Date: Sat, 3 Oct 2015 04:12:40 -0500
On Oct 3, 2015, at 3:25 AM, Edward d'Auvergne wrote:
> On 2 October 2015 at 11:33, Stefan Sperling wrote:
So configure autoprops correctly for those various extensions.
You can even use repository-dictated configuration to make those autoprops definitions automatic for all your diverse users.
On Oct 3, 2015, at 3:48 AM, Edward d'Auvergne wrote:
> The damage is to the repository backend and to the development process
Not a bug: intended behavior for binary files. The "bug" is that Subversion, via libmagic, has decided a file is binary, when you consider it to be text.
The XML specification defines a number of correct MIME types for XML files, including some beginning with "text/xml" (intended for human-readable XML files) and "application/xml" (intended for XML files not meant for humans to read). libmagic can identify whether a file is XML, but it cannot know whether the file is meant for human consumption, so it picks on of these. The person committing the file can correct this prior to committing if it is inaccurate. Or if you don't want the property set at all, use autoprops.
> Here is an interesting sign as well:
Subversion doesn't do things without being told to do so. There are defaults for how MIME types are set on files, which you can override.
> Manually monitoring this huge beast is out of the question.
Of course you wouldn't monitor it manually; you would monitor it via a pre-commit hook script that prevents commits that don't conform to your requirements.
This is an archived mail posted to the Subversion Users mailing list.