编码问题导致svn生成patch或者提交失败

问题描述
用SmartSVN生成Patch时提示 svn: File has inconsistent newlines

问题分析
提交的文件编码时混合了windows和unix符号

问题解决
对提交的文件运行命令:
svn propdel svn:eol-style target.file

又找到一种方法,但是没有试过:
在SmartSVN中,点击Project–>Setting,选择Working copy下的EOL-style,将Default EOL-style设置为 As is(no conversion),并点击ok按钮