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

RE: Mark file with svn:eol-style as binary

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Wed, 1 Sep 2010 11:42:20 -0400

> The following behavior seems to be unexpected.
>
> 1. Set 'native' EOL style on file:
>
> $ svn ps svn:eol-style native file
> property 'svn:eol-style' set on 'file'
>
> 2. Mark this file as binary:
>
> $ svn ps svn:mime-type application/octet-stream file
> property 'svn:mime-type' set on 'file'
>
> I believe the behavior is unexpected since svn refuses to do the
> same
> steps in reverse order.
>
> $ svn ps svn:mime-type application/octet-stream file
> property 'svn:mime-type' set on 'file'
>
> $ svn ps svn:eol-style native file
> svn: File 'file' has binary mime type property
>
> The described above is reproducible with subversion build from
> 1.6.x
> branch sources:
>
> $ svn --version
> svn, version 1.6.13 (dev build)

svn:eol-style and svn:mime-type application/octet-stream are pretty much mutually exclusive.

Which is why it tells you not to set an eol-style on a binary file.

Are you saying you want it to not allow setting a file as binary if it has an eol-style set?

BOb

Received on 2010-09-01 17:42:57 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.