Page 1 of 1

SVN eol settings

Posted: Sat Apr 26, 2008 8:08 pm
by 1337
I've just come across something very interesting about SVN:
You can set the svn:eol-style property to text files. An interesting setting is 'native'. That means that svn will convert the line endings to the native way of the operating system you're checking out the repository.

Has anyone already dealt with that before? I'm not very keen to set a property to every text file unless I know it works fine and doesn't cause problems.

SVN supports auto config files too (located in the actual svn directory on the server) that would automatically set the property to for example every *.cc and *.h file.

Posted: Sat Apr 26, 2008 9:59 pm
by x3n
.cc and .h shouldn't cause problems, at least i didn't noticed any until now but I've already had problems with linux shell scripts uploaded from a windows client (without even opening them).

Posted: Sat Apr 26, 2008 10:04 pm
by 1337
x3n wrote:.cc and .h shouldn't cause problems, at least i didn't noticed any until now. but i've already had problems with linux shell scripts uploaded from a windows client (without even opening them).
Exactly ;) I've once spent an entire hour finding the problem with nico in the 3rd semester at my very beginning with orxonox. The script just didn't work without reason...