SVN eol settings

Everything concerning SVN, our wiki and this forum.

Moderator: PPS-Leaders

Post Reply
User avatar
1337
Baron Vladimir Harkonnen
Posts: 521
Joined: Wed Oct 10, 2007 7:59 am

SVN eol settings

Post by 1337 » Sat Apr 26, 2008 8:08 pm

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.
http://www.xkcd.com/
A webcomic of romance, sarcasm, math, and language.

User avatar
x3n
Baron Vladimir Harkonnen
Posts: 810
Joined: Mon Oct 30, 2006 5:40 pm
Contact:

Post by x3n » Sat Apr 26, 2008 9:59 pm

.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).

User avatar
1337
Baron Vladimir Harkonnen
Posts: 521
Joined: Wed Oct 10, 2007 7:59 am

Post by 1337 » Sat Apr 26, 2008 10:04 pm

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...
http://www.xkcd.com/
A webcomic of romance, sarcasm, math, and language.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests