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

Re: svn client does not convert line endings for some java files

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Fri, 3 May 2013 09:34:16 -0400

On 05/03/2013 09:21 AM, Marek Slama wrote:
> Hi,
>
> not sure why but my svn client does not convert line endings for 'some'
> of my files. I did not find any rule for this. I have java project and
> files are text java sources. There is no mime type or eol-style property
> set on given files and some are with Linux line endings and some with DOS
> line endings. I have svn, version 1.7.5 (r1336830) compiled Sep 28 2012,
> 11:22:04. I do not know how to find out server version in case it is
> relevant.
>
> If I set eol-style property to native then it works. But such behaviour
> seems weird to me.

Subversion is designed with a pretty clear policy governing such matters:
don't screw up the user's files!

If you happen to be coming from a CVS background, this will seem odd to you,
because CVS's default mode of operation is to assume that a file is
human-readable and that native newlines are desired, and will quite happily
destroy the binary files you forget to add with the -kb flag.

In Subversion, your file's contents are considered sacred. Unless you set
the svn:eol-style property on a given file, well-behaved Subversion clients
will not attempt to perform newline translation on that file.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Enterprise Cloud Development

Received on 2013-05-03 15:35:08 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.