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

Re: Changing the "native" newline mode

From: Ryan Schmidt <subversion-2010a_at_ryandesign.com>
Date: Fri, 12 Feb 2010 16:12:01 -0600

On Feb 12, 2010, at 16:05, Bob Archer wrote:

>> Is there any way to change the native newline mode for a particular
>> working copy?
>>
>> I'm checking out code in Linux, over a CIFS mount to a Windows machine
>> where it's being used. This is much easier for me than any of the
>> solutions involving Windows clients, but ends up with Unix line
>> endings, leading to newline headaches.
>
> This is pretty well explained in the documentation book. Read about the svn:eol-style property.
>
> http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.advanced.props.special.eol-style

Bob, I think Glenn's saying that he has set svn:eol-style to native, and he's checking out on a UNIX OS but he wants the eol-style of the files to be native to Windows, not UNIX.

Unfortunately, Glenn, I don't see a way to do that. svn export has an option for this, but svn checkout doesn't.

  --native-eol ARG : use a different EOL marker than the standard
                             system marker for files with the svn:eol-style
                             property set to 'native'.
                             ARG may be one of 'LF', 'CR', 'CRLF'

I used to work at a company where we had the same workflow. We decided to never use svn:eol-style native. Instead, we set svn:eol-style to LF, and configured our Windows editors to know how to deal with such files.
Received on 2010-02-12 23:12:43 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.