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

Re: Text mime types

From: Greg Thomas <thomasgd_at_omc.bt.co.uk>
Date: 2005-06-06 15:57:04 CEST

On Mon, 6 Jun 2005 12:36:36 +0200, Nicolas Goutte <nicolasg@snafu.de>
wrote:

>I would be nice if Subversion would have a svn:text property to tweak it
>independently (even if perhaps its default would be "look at the mime type").

Regardless of the setting of the application/xml or text/xml mime type
discussion held elsewhere, this strikes me as an incredibly sensible
idea (though I'll turn it on it's head and suggest svn:binary
instead).

Currently, the determination of whether or not files are binary is a
bit arbitrary - a file is considered binary if it has a svn:mime-type
other than text/*, image/x-xbitmap or image/x-xpixmap.

A simple svn:binary flag set if needed automatically when a file is
added (cf application/octet-stream) should make the whole thing a lot
simpler - it will also solve the problem of more exceptions being
added to the current list.

For example, the XML files of OpenOffice documents are application/* -
http://framework.openoffice.org/documentation/mimetypes/mimetypes.html
yet they are XML and therefore (presumably) text. No doubt they too
should be added to the "not svn:mime-type=text/* but still text" list.
This list could grow and grow, but a simple svn:binary flag solves the
problem once.

Greg
[dev list added, as no doubt there are other issues I've missed]

-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jun 6 16:27:28 2005

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.