On my current project, developers work from Linux and Windows together, and we ran into the following problem when trying to commit from Eclipse:
Commit failed (details follow): svn: File '/home/pal/workspace/proobox/build.xml' has inconsistent newlines
Well, someone else already had this problem, and the solution was to remove the keyword svn:eol-style from the file in Subversion.
In Eclipse, select Team/Show Keywords and remove the keyword, in command prompt:
$ svn proplist -v build.xml Properties on 'build.xml': svn:keywords : author date id revision svn:eol-style : native $ svn propdel svn:eol-style build.xml property 'svn:eol-style' deleted from 'build.xml'.
Your now ready to commit, and problem is solved! ![]()
本文介绍了一个跨平台开发中常见的问题:Subversion版本控制系统中的文件在*nix和Windows系统间操作后可能出现的新行格式不一致问题,并提供了解决方案。建议去除文件的svn:eol-style:native属性或修改全局配置。
142

被折叠的 条评论
为什么被折叠?



