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

Re: mime-types enhancement

From: Luigi Bai <lpb_at_focalpoint.com>
Date: 2004-02-04 19:20:39 CET

You're right; I can use auto-props for that. The example in the config
file doesn't seem correct, as it seems to try to set svn:mimetype
instead of svn:mime-type. And despite my original post, I'd actually
*prefer* a repository-wide mapping instead of per-user; just for myself,
I need to keep the .subversion/ files on my laptop in synch with the
ones on the server. Never mind what other people check in.

Of course, with per-user config, it applies to *all repositories* I
connect to. So, to get the best of both worlds, how about both? If so,
per-repository should override per-user, I think.


Brian. W. Fitzpatrick wrote:

> On Wed, 2004-02-04 at 11:59, Luigi Bai wrote:
>>I'd like to propose an extension to the heuristics SVN uses to determine
>>the mime-type of a new file. In particular, I'd like to propose a
>>.subversion/mime-mappings file with the following format:
>> <mime-mapping>
>> <extension>abs</extension>
>> <mime-type>audio/x-mpeg</mime-type>
>> </mime-mapping>
>> <mime-mapping>
>> <extension>ai</extension>
>> <mime-type>application/postscript</mime-type>
>> </mime-mapping>
>> <mime-mapping>
>> <extension>aif</extension>
>> <mime-type>audio/x-aiff</mime-type>
>> </mime-mapping>
>> <mime-mapping>
>> <extension>aifc</extension>
>> <mime-type>audio/x-aiff</mime-type>
>> </mime-mapping>
>>Extensions are compared without case sensitivity.
> This sounds an awful lot like auto-props, which are implemented but not
> documented. Look in the config files in your ~/.subversion directory
> for more information.
> -Fitz

<A HREF="http://www.focalpoint.com/">Home Page</A>
education is what's left after what is learned is forgotten.
                                -- b f skinner
Luigi P. Bai                   Focal Point Software, Inc.
lpb@focalpoint.com             3701 Kirby Drive, Suite 512
turning data into information  Houston, TX   77098
                                (713) 215-1600 x 33#
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Feb 4 19:20:59 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.