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

Re: MIME Type for SVG images in SVN config

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Thu, 19 Jun 2008 13:11:21 -0500

Kevin Grover wrote on 18 Jun 2008, 8:03, at least in part:

> Notice however, if you set
> the mime type to ANYTHING other than text/*, then svn will treat the
> file as binary and will no longer allow you to do diff's etc.

Strictly speaking, there are two exceptions: image/x-xbitmap and
image/x-xpixmap are also treated as text.

> I'm guessing that if mime-type is set to anything other than text/*
> then it will ignore eol-style (because it's a binary file in svn's
> eyes). This last is just a hunch on my part --- I'd have to verify
> it.

No, Subversion will happily convert line endings on any file on which
you set svn:eol-style, regardless of MIME type or whether Subversion
would otherwise think the file is text or binary. Do not set svn:eol-
style on binary files because it will likely either complain about
the inconsistent "line endings" in the file, or it will corrupt the
file.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-19 20:11:54 CEST

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.