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

[TSVN] Re: Setting SVN properties using the config file

From: Andreas Keil <rien_at_nurfuerspam.de>
Date: 2005-09-08 15:54:56 CEST

"Bernhard Schalk" <schalkml01@mch.osram.de> wrote in message
news:43202D63.7070706@mch.osram.de...
> Hi Andreas,
>
> I think the syntax is correct, but a binary mime type and eol-style=native
> are obviously incompatible:
>
> When I do like you did, I get the error (in a TSVN dialog box)
> "File 'test.tex' has binary mime type property"
> when I add a .tex file.
>
> The file is added anyway, but the svn:eol-style=native is lost.
>
> When I change the config file to
> *.tex = svn:mime-type=text/plain;svn:eol-style=native
> and add another .tex file everything works just fine, both properties
> svn:mime-type and svn:eol-style get added to the file.
>
> According to the section on svn:mime-type in the svn-book you definitely
> want to assign a text mime-type to tex-files, since the possibility to
> merge them line-based is necessary.
>
> Since I am no expert in mime-types I can not tell if application/x-tex
> being interpreted as a binary mime-type is a bug in subversion.
>
> Bye,
> Bernhard

Hi Bernhard,

I can reproduce this but I think that considering an application MIME type
incompatible with text files isn't quite right. Even the Tortoise docs say:

"For example, if a file's svn:mime-type property is set to a non-text MIME
type (generally, something that doesn't begin with text/, though there are
exceptions), Subversion will assume that the file contains binary-that is,
not human-readable-data."

Therefore, I think that non "text/" MIME types shouldn't automatically
considered to be binary. But as you said, I think, we'd need a MIME expert
here.

Thanks for your answer,
Andreas.

-- 
Mails to my e-mail address are usually discarded without even having been 
read, sorry. 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Sep 8 17:15:41 2005

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

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