开发者

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 开发者_JS百科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?


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

 svn propset svn:eol-style 'native'


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜