Search code examples
svnline-endings

How do I repair all corrupt lines ending from files on a subversion repository


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?


Solution

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

     svn propset svn:eol-style 'native'