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

Re: xml file handling

From: Manfred Lotz <manfred.lotz_at_arcor.de>
Date: Fri, 28 Feb 2014 12:59:42 +0100

On Fri, 28 Feb 2014 10:51:08 +0100
Branko Čibej <brane_at_wandisco.com> wrote:

> On 28.02.2014 08:04, Manfred Lotz wrote:
> > Hi there,
> > I have a strange phenomena.
> >
> > In ~/.subversion/config I have
> >
> > [miscellany]
> > enable-auto-props = yes
> >
> > [auto-props]
> > *.xml = svn:eol-style=native; svn:keywords=Author Date Id Revision
> >
> >
> > Fedora 20, subversion 1.8.5-2
> >
> > svn add my.xml
> >
> > svn: E200009: Can't set 'svn:eol-style': file
> > '/data/mysvn/trunk/my.xml' has binary mime type property
> >
> >
> > Ubuntu 12.10, subversion 1.7.5-1
> >
> > svn add my.xml
> >
> > works just fine,
> >
> >
> > Any idea why the behavior is different?
>
> The version on Fedora is probably using libmagic which thinks all XML
> files should have MIME-type application/xml. I suggest you prepend
> "svn:mime-type=text/xml;" to your "*.xml" line in the auto-props.
>
> -- Brane
>
>

Specifying the mime type for *.xml in the config file does the job.

-- 
Manfred
Received on 2014-02-28 13:01:50 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.