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

Re: Checking out code to UNIX server, EOL issues.

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-06-09 18:31:03 CEST

Nathan Kidd wrote:

> My understanding is the OP wanted to keep his working copy on Linux
> using LF line endings but checkout/update/edit on Windows. He asked
>
>> Is there a way to make TSVN know that it is checking out files to
>> a UNIX filesystem, so that it doesn't use cr+lf?
>
> to which the answer is No. You cannot specify the type of line ending

Actually, the answer is yes.
You can set the svn:eol-style property to 'LF' instead of 'native'. Then
Subversion will make sure that the file has LF EOL style on checkout,
and give a warning if the windows editor messed those EOL's up before
committing.

But still, I think the best option would be to set the property to
'native'. Because then, you can use whatever editor you like on the OS
you're currently working on and don't have to worry that e.g. notepad
doesn't understand LF EOLs, and if you convert the EOLs that on the
Linux system you then get messed up lines.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri Jun 9 18:31:15 2006

This is an archived mail posted to the TortoiseSVN Users mailing list.

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