Question

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?

Was it helpful?

Solution

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

 svn propset svn:eol-style 'native'

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top