Eclipse SVN同步问题

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3976882/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 19:41:17  来源:igfitidea点击:

Eclipse SVN synchronize problem

eclipsesvnversion-controlsubclipse

提问by javanes

We changed our SVN machine because of a hardware problem. We established the same environment from back-up to another machine.

由于硬件问题,我们更换了 SVN 机器。我们建立了从备份到另一台机器的相同环境。

Now Subversion seems to work properly, I can update, commit and browse from Tortoise Client.

现在 Subversion 似乎工作正常,我可以从 Tortoise 客户端更新、提交和浏览。

But in Eclipse problem exist for Synchronize command (subclipse plugin). I can browse and commit from Eclipse too.

但是在 Eclipse 中,同步命令(subclipse 插件)存在问题。我也可以从 Eclipse 浏览和提交。

I tried to change SVN interface (from JavaHL to SVNKit), svn cleanup and upgrade subclipse plugin, but nothing helps.

我尝试更改 SVN 接口(从 JavaHL 到 SVNKit)、svn 清理和升级 subclipse 插件,但没有任何帮助。

JavaHL and SVNKit gives different errors.

JavaHL 和 SVNKit 给出了不同的错误。

**Error when use JavaHL**
Problems reported while synchronizing SVNStatusSubscriber. 0 of 1 resources were synchronized.
  An error occurred synchronizing /ChemOrbis: Error getting status for resource P/ChemOrbis org.tigris.subversion.javahl.ClientException: RA layer request failed
svn: REPORT of '/svn/ChemOrbis/!svn/vcc/default': 200 OK (http://svn.treda.net)

    Error getting status for resource P/ChemOrbis org.tigris.subversion.javahl.ClientException: RA layer request failed
svn: REPORT of '/svn/ChemOrbis/!svn/vcc/default': 200 OK (http://svn.treda.net)

      org.tigris.subversion.javahl.ClientException: RA layer request failed
svn: REPORT of '/svn/ChemOrbis/!svn/vcc/default': 200 OK (http://svn.treda.net)

      org.tigris.subversion.javahl.ClientException: RA layer request failed
svn: REPORT of '/svn/ChemOrbis/!svn/vcc/default': 200 OK (http://svn.treda.net)


**Error when use SVNKit**
Problems reported while synchronizing SVNStatusSubscriber. 0 of 1 resources were synchronized.
  An error occurred synchronizing /ChemOrbis: Error getting status for resource P/ChemOrbis org.tigris.subversion.javahl.ClientException: svn: Processing REPORT request response failed: XML document structures must start and end within the same entity. (/svn/ChemOrbis/!svn/vcc/default) 
svn: REPORT request failed on '/svn/ChemOrbis/!svn/vcc/default'
    Error getting status for resource P/ChemOrbis org.tigris.subversion.javahl.ClientException: svn: Processing REPORT request response failed: XML document structures must start and end within the same entity. (/svn/ChemOrbis/!svn/vcc/default) 
svn: REPORT request failed on '/svn/ChemOrbis/!svn/vcc/default'
      org.tigris.subversion.javahl.ClientException: svn: Processing REPORT request response failed: XML document structures must start and end within the same entity. (/svn/ChemOrbis/!svn/vcc/default) 
svn: REPORT request failed on '/svn/ChemOrbis/!svn/vcc/default'
      org.tigris.subversion.javahl.ClientException: svn: Processing REPORT request response failed: XML document structures must start and end within the same entity. (/svn/ChemOrbis/!svn/vcc/default) 
svn: REPORT request failed on '/svn/ChemOrbis/!svn/vcc/default'

回答by Zoltán Ujhelyi

I'd try a clean-up - right click on the project, then select Team/Cleanup...

我会尝试清理 - 右键单击​​项目,然后选择团队/清理...

In a lot of cases this helps to solve synchronize problems.

在很多情况下,这有助于解决同步问题。

回答by rumatoest

Clean all svn passwords saved in eclipse. Try do not save any svn passwords in eclipse.

清除保存在 eclipse 中的所有 svn 密码。尽量不要在 eclipse 中保存任何 svn 密码。

Then in .subversion/config file change this:

然后在 .subversion/config 文件中更改:

[auth]
# other config options
# you should reset password stores here
password-stores = 

回答by Mugundhan Ayyadhurai

  1. Clean the workspace
  2. Delete the project from workspace
  3. Re-import the project from SVN
  1. 清洁工作区
  2. 从工作区中删除项目
  3. 从SVN重新导入项目

This has solved the problem for me.

这为我解决了这个问题。

回答by Deepa Dhanalakota

It happened twice For me. Once I resolved Like this -- I made a backup file with my changes . I closed my eclipse -> go into the prject in windows explorer - > Go to the file in conflict -> right click -> SVN -> Revert. Now I started eclipse -> put back my changes and it worked.

它发生了两次对我来说。一旦我解决了这样的问题 - 我用我的更改制作了一个备份文件。我关闭了我的 Eclipse -> 进入 Windows 资源管理器中的项目 -> 转到冲突中的文件 -> 右键单击​​ -> SVN -> 还原。现在我开始 eclipse -> 放回我的更改并且它起作用了。

Second time it happened -- That did not help. So, I had to delete the project on my eclipse workspace, and checked out the project from SVN and it worked.

第二次发生了——那没有帮助。所以,我不得不删除我的 eclipse 工作区上的项目,并从 SVN 检出该项目并且它工作正常。

-Hope it helps.

-希望能帮助到你。

回答by Veluru

Upgrade with Team.....>Upgrade Then you will not see those errors.

与团队一起升级.....>升级 然后您将不会看到这些错误。