views:

28

answers:

2

I have a big subversion repository and I discovered that many .py files (and maybe others) do not have the proper line endings, generating problems when checked out on different platforms.

How can I solve this without repairing them one by one?

Also how to I prevent others from corrupting the repository?

A: 

You need to set up a SVN property "eol-style" for these files to "native". Check this

 svn propset svn:eol-style 'native'
Pmod
A: 

Look at the svn-apply-autoprops script that comes as part of the source distribution -- it'll compare the properties of all checked out files with that in your subversion configuration file and then apply the correct properties. As Pmod mentions, it's the svn:eol-style property that has to be set to native

the_mandrill