Native does what it says: uses the native eol style on the platform you check out, i.e. CRLF on Windows and LF on Unix.
Where I work we found out that "native" (the obvious choice when you compile source code on different platform) was actually causing the code not to compile correctly on Solaris. Now all files have the svn:eol-style property set to LF, but that had to be done manually, then commit, and only then we were able to checkout on ALL platform with LF. As Lasse said there is not way to pick with eol use dynamically.
giulio
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447
________________________________________
From: lassevk_at_gmail.com [mailto:lassevk_at_gmail.com] On Behalf Of Lasse Vågsæther Karlsen
Sent: 04 January 2008 15:30
To: users_at_tortoisesvn.tigris.org
Subject: Re: how to checkout on Windows with Unix-style EOL (LF)?
The purpose of that flag is to make sure that tools on the platform you're checking it out on is able to correctly process the file.
If you only want to use LF style, why is the file set to native then?
Afaik, there is no setting that will let you pick on checkout time what system to use.
On Jan 4, 2008 4:13 PM, Alexey I. Kardashevsky <aik.rsdn_at_gmail.com> wrote:
eol-style is set to "native" in the repository. This "native" is treated as "CRLF" on Windows.
Why cannot I checkout with LF on Windows? This is fascism :-)
On Jan 4, 2008 5:04 PM, Andy Levy <andy.levy_at_gmail.com> wrote:
On Jan 4, 2008 9:02 AM, Alexey I. Kardashevsky <aik.rsdn_at_gmail.com> wrote:
> So does it mean that there is absolutely no way to checkout fresh copy files
> with LF right away? With TortoiseSVN, of course.
If svn:eol-style is set to native or CRLF on the version in the
repository, that's what you'll get when you check out on Windows. If
it's set to LF in the repository, you'll get LF when you check out on
Windows.
> On Jan 4, 2008 4:41 PM, Andy Levy < andy.levy_at_gmail.com> wrote:
> >
> >
> >
> >
> >
> >
> > On Jan 4, 2008 8:35 AM, Alexey I. Kardashevsky < aik.rsdn_at_gmail.com>
> wrote:
> > > The tool is too smart and replaces EOLs with the Windows ones (CR+LF).
> > > However I need LF EOLs.
> > > I've changed the config files as follows:
> > >
> > > [auto-props]
> > > * = svn:eol-style=LF
> > > *.* = svn:eol-style=LF
> > >
> > >
> > > But this did not help. I've changed the "svn:eol-style" property from
> > > Windows explorer "properties" window, did not help too.
> > > What have I done wrong? Many thanks and happy NY!
> >
> > auto-props only controls properties that get automatically applied
> > when adding a new item to the repository. To make existing files check
> > out with the desired line ending, you must modify the svn:eolstyle
> > property for each of those files.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
> > For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
> >
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-01-04 16:40:22 CET