You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Manfred Lotz <ma...@arcor.de> on 2014/02/28 08:04:45 UTC
xml file handling
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?
--
Manfred
Re: xml file handling
Posted by Manfred Lotz <ma...@arcor.de>.
On Fri, 28 Feb 2014 10:51:08 +0100
Branko Čibej <br...@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
Re: xml file handling
Posted by Branko Čibej <br...@wandisco.com>.
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
--
Branko Čibej | Director of Subversion
WANdisco // Non-Stop Data
e. brane@wandisco.com
Re: xml file handling
Posted by Manfred Lotz <ma...@arcor.de>.
On Fri, 28 Feb 2014 10:06:25 +0000
Philip Martin <ph...@wandisco.com> wrote:
> Manfred Lotz <ma...@arcor.de> writes:
>
> > 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 Fedora build might have libmagic support to automatically detect
> the mime type. Does
>
> MAGIC= svn add my.xml
>
> work?
>
Yep, this works fine.
--
Manfred
Re: xml file handling
Posted by Philip Martin <ph...@wandisco.com>.
Manfred Lotz <ma...@arcor.de> writes:
> 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 Fedora build might have libmagic support to automatically detect the
mime type. Does
MAGIC= svn add my.xml
work?
--
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*