Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checking out a Linux-based subversion project into Windows and line endings

Tags:

svn

eol

I am collaborating on a project hosted in a Subversion repository on a Linux server. My computer runs Windows XP. I am using CollabNet's Windows Subversion command-line client on my Windows XP machine.

I am running into the end-of-line (EOL) problem that happens when I edit a file on my Windows machine and then do an svn update. Subversion thinks there are differences when the only differences are really between line-endings.

I kow that this could be solved with the eol-style property, but I am unclear as how to proceed:

  1. What setting for eol-style should I use?
  2. Do I make this property setting on the Linux side or the Windows side?
like image 392
rlandster Avatar asked Feb 02 '26 22:02

rlandster


1 Answers

You should probably use svn:eol-style= native. This means that it'll convert LF to CRLF when on windows, and keep LF on linux. It doesn't matter on what system you set the property.

See also svnbook

like image 177
Sander Rijken Avatar answered Feb 05 '26 12:02

Sander Rijken