3

I am trying to commit one java file in Eclipse Juno Service Release 2 using SVN

When I do Team/Commit on the file I get the following.

Some of selected resources were not committed.
Some of selected resources were not committed.
svn: E155011: Commit failed (details follow):
svn: E155011: Commit failed (details follow):
svn: E155011: File 'C:\Users\...\workspace\...\src\com\MyCode.java' is out of date

When I try and do Team/Update - whether on the file or the folder or the project, I get

Some resources were not updated.
svn: E175002: chunked stream ended unexpectedly
svn: E175002: REPORT request failed on '/svn/project/!svn/vcc/default'

I have tried

  1. Restarting Visual SVN Server
  2. Deleting the .java file and then adding it again
  3. Renaming the .java file, and then renaming it back
  4. Updating the Eclipse and SVN software, and trying again
  5. Team/Revert, Team/Update, making changes, Team/Commit

Can anyone help? (all other files/folders etc. work fine)

PS This question was copied from https://superuser.com/questions/585724/commit-failed-in-eclipse

4

7 回答 7

2

你应该尝试一个团队/清理

在 eclipse rt 点击顶层文件夹点击 team -> cleanup

你可能有一些你不知道的 .svn 文件锁。

如果有的话,另一种选择是使用 tortoise svn windows 插件。

乌龟svn下载站点

这与 windows 集成得很好,避免了 eclipse 颠覆插件问题。我发现当 eclipse 出现时它是一个很好的备份。

于 2013-07-10T16:04:56.983 回答
2

You could also just create another workspace, create a new subversion project and download the entire code base from subversion to this new workspace. Then hand copy the .java file over to the new workspace and try to check in. If it works abandon your old workspace.

于 2014-09-02T20:29:53.973 回答
1

通过 TortoiseSVN 提交,它会建议你进行更新,然后你就可以提交了

于 2015-09-11T12:37:00.240 回答
0

spartikus 的答案应该被标记为答案。

我遇到了同样的提交失败消息。我之前安装了 TortoiseSVN,但开始使用 Eclipse 的 Subversive 插件。在大多数情况下,它工作得很好,但我遇到了这样的问题,其中 Tortoise 是一个很好的备份和解决方案。

安装 TortoiseSVN 后,您会在所有 SVN 文件和文件夹旁边看到这些图标。
乌龟状态图标

要解决您的问题,请在 Windows 资源管理器中打开项目文件夹的位置。选择/突出显示需要提交的文件,右键单击“SVN Commit”,输入您的提交信息,然后单击“确定”。

于 2014-08-08T14:35:46.757 回答
0

我有同样的问题,对于一个文件夹,我无法提交文件。我检查了每个文件,发现问题出在一个文件上,我已经删除了该文件。我去了已删除文件所在的目录,并打开了该目录中 .svn 文件夹中的条目文件。

我可以看到已删除文件的条目,我删除了该条目并保存了文件。

之后一切正常。

因此,最好检查每个单独的文件并找到导致此问题的文件,然后更正条目或删除此文件并重新创建它。

于 2013-11-08T03:32:35.187 回答
0

我偶尔会在使用 Eclipse CDT 和 Code Composer Studio(基于 Eclipse)时遇到这个问题。我找到了一种更简单的方法来解决这个问题(至少对我来说更容易):

我只是打开一个终端,导航到源路径,然后使用 SVN 命令行更新然后提交。到目前为止,它每次都有效,无需添加工具、重新创建工作区等。YMMV。

于 2021-01-09T00:46:48.397 回答
0

转到eclipse的团队同步视图>右键单击项目>本地>清理应该解决这个问题,否则创建一个新的工作空间

于 2015-07-13T17:58:09.983 回答