You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Henrik Sundberg <st...@gmail.com> on 2008/01/15 22:07:00 UTC

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

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?

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.

/$

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

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

Posted by Andy Levy <an...@gmail.com>.
On Jan 15, 2008 5:07 PM, Henrik Sundberg <st...@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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org