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

Re: setting svn:eol-style=LF and svn:mime-type=application/xml

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 03 May 2012 17:30:22 +0100

Dmitry Pavlenko <pavlenko_at_tmatesoft.com> writes:

> I.e. if I set svn:eol-style before svn:mime-type, everything is
> ok. Otherwise there can be a problem. What behaviour is expected:
> failure in both cases or success in both of them?
>
> svn:eol-style before svn:mime-type:
>
> $ svn propset svn:eol-style LF file1.xml
> property 'svn:eol-style' set on 'file1.xml'
>
> $ svn propset svn:mime-type application/xml file1.xml
> property 'svn:mime-type' set on 'file1.xml'
>
> vice versa:
>
> $ svn propset svn:mime-type application/xml file2.xml
> property 'svn:mime-type' set on 'file2.xml'
>
> $ svn propset svn:eol-style LF file2.xml
> svn: E200009: File '/tmp/test-co/file2.xml' has binary mime type property

I suppose this is to avoid problems with EOL conversion modifying binary
files, in which case the error should occur in both cases. Also it
should occur when the user sets svn:keywords and a binary mime-type.

You can still set the properties: use "svn ps --force" to tell
Subversion you know what you are doing.

-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com
Received on 2012-05-03 18:31:00 CEST

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