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

Re: How much should auto-props be used for mime-type?

From: Andy Levy <andy.levy_at_gmail.com>
Date: Tue, 15 Jan 2008 19:14:29 -0500

On Jan 15, 2008 5:07 PM, Henrik Sundberg <storangen_at_gmail.com> wrote:
> We have an auto-props section with specified mime types for very many filetypes.
> Is that a good idea, or is it better to just let subversion decide?

If you don't set mime-types, SVN won't "decide" anything for you. It
will make an educated guess about whether a file is text or binary,
but that's about it.

> I was told that Trac didn't syntax highlight the .cpp files for which
> we set text/plain as mime-type, but it did on those we added before
> auto-props was enabled.

It's not a matter of auto-props. You set the mime-type of those files
to text/plain, so Trac assumed they were plain text. If you set the
mime-type to one that indicated to Trac (or any other software) that
the file contains C++ source code, it will (probably) do the
highlighting.

Auto-props is simply the name for Subversion's mechanism for applying
properties to items automatically when they're added. You can set
mime-type without auto-props.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-16 01:14:49 CET

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.