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

Re: eol-style native

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Wed, 24 Sep 2008 21:46:36 -0500

On Sep 24, 2008, at 21:32, David Weintraub wrote:

> On Wed, Sep 24, 2008 at 9:40 PM, Andy Levy <andy.levy_at_gmail.com>
> wrote:
>> On Wed, Sep 24, 2008 at 21:22, David Weintraub <qazwart_at_gmail.com>
>> wrote:
>>> On Wed, Sep 24, 2008 at 5:28 PM, Steve Whitson
>>> <steven.whitson_at_gmail.com> wrote:
>>>> One other issue here is that in order to maintain softlinks I
>>>> have to keep
>>>> the master working (reference) copies on unix, which leads to
>>>> problems when
>>>> auto-props is turned on and eol-style is native... especially when
>>>> expectation is that the eol doesn' t change between platforms.
>>>> For some
>>>> tools/languages/scripts that's not an issue, for others it is.
>>> Have you looked at svn:eol-style=share?
>>> That keeps the line endings in the repository as Unix LF, but
>>> changes
>>> them in your working copy depending upon the platform you use. On
>>> Unix, they'll be LF, on Windows, they'll be CRLF.
>> I don't see share as a valid value for this property in
>> http://svnbook.red-bean.com/en/1.5/svn.advanced.props.file-
>> portability.html#svn.advanced.props.special.eol-style
>> What you describe is how svn:eol-style=native behaves.
> Sorry. I've been up pretty late, and I'm getting this mixed up with
> Perforce. Yes, I'm thinking of snv:eol-style=native.
> That's a problem when you work with a bunch of different systems all
> at the same time.

Well it sounds like Steve is already using svn:eol-style=native, and
the problem he's running into is that he wants to share a working
copy between Windows and Unix computers. He needs to check out the
working copy on Unix (so that the Unix part can use the symlinks that
are checked into his repository). But since the eol translation only
happens at checkout / update time, this means that the line endings
are Unix (because the checkout was done on Unix) but this means when
you access the working copy from Windows, Windows programs won't know
how to deal with it.

Where I worked, we set svn:eol-style=LF instead so it didn't matter
where it was checked out. And we trained all our Windows software to
know how to deal with files with LF line endings.

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-25 04:46:49 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.