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

Forcing svn:eol-style=native on files with "binary" mime types?

From: Aleksey Nogin <nogin_at_cs.caltech.edu>
Date: 2005-09-22 02:22:50 CEST

I have a number of files that should use native eols, but should not be
merged by subversion. It turns out that if I _first_ mark these files
with a "non-text" mime-type, then subversion refuses to accept
eol-style=native on them, complaining:

svn: File 'foo' has binary mime type property

Even --force does not help convince subversion that I know what I am
doing here. So far, the only way to get around it that I've found is to
remove the svn:mime-type, add svn:eol-style, and then put svn:mime-type
back in, which is quite annoying.

And there seems to be no make this work in auto-props - if I use
something like

*.foo = svn:eol-style=native;svn:mime-type=application/x-foo

then "svn add xyz.foo"
- print
  svn: File 'xyz.foo' has binary mime type property
  (and nothing else!)
- "silently" adds the file with the correct svn:mime-type set, but no
svn:eol-style property.

If I reorder the two properties in the auto-props, nothing changes.

Is there a way to set svn:eol-style w/o removing the svn:mime-type and
adding it back? Is there a way to make this work in auto-props? Should
it be considered a bug/deficiency that

a) Trying to force it with "svn ps --force svn:eol-style" does not work
and there does not seem to be any other straightforward way to force it.

b) There is no way to combine svn:eol-style with
mime-type=application/... in auto-props?

c) If I do it in different order, then it does allow it (I am actually
very happy about it, but if the goal was to prohibit combining the two,
then the order should not matter)?

d) That "svn add" leaves things in half-finished state (w/o even
explicitly warning about it)?

Are there any issues filed on this? Thanks!

P.S. I tried raising this question in users@ , but have not gotten any

Aleksey Nogin
Home Page: http://nogin.org/
E-Mail: nogin@cs.caltech.edu (office), aleksey@nogin.org (personal)
Office: Moore 04, tel: (626) 395-2200
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 22 04:30:42 2005

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

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