尝试使用 Eclipse 颠覆性插件提交时获取“只能在版本资源上执行 CHECKOUT”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17816012/
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 21:48:59  来源:igfitidea点击:

Getting "CHECKOUT can only be performed on a version resource" when trying to commit using Eclipse subversive plugin

eclipsesvncommitsubversive

提问by Dave

I'm using Eclipse Juno on Mac 10.7.5, SVN 1.7 and the Eclipse Subversive plugin. Occassioanlly, when I try and commit changes from my project (by right clicking on the project from the package explorer, selecting "Team" -> "Commit"), I get the error:

我在 Mac 10.7.5、SVN 1.7 和 Eclipse Subversive 插件上使用 Eclipse Juno。有时,当我尝试从我的项目提交更改时(通过右键单击包资源管理器中的项目,选择“团队”->“提交”),我收到错误消息:

Some of selected resources were not committed.
Some of selected resources were not committed.
svn: E200007: Commit failed (details follow):

svn: E200007: Commit failed (details follow):
svn: E200007: CHECKOUT can only be performed on a version resource [at this time].
svn: E175002: CHECKOUT request failed on '/svn/subco-digital.coderepo/!svn/rvr/2110/trunk/myproject/src/main/java/org/mainco/subco/myproject/validator/UserFormValidator.java'

I have verified that I have checked out the latest version of my project. How can I take care of these repeated errors?

我已经确认我已经签出我的项目的最新版本。我该如何处理这些重复的错误?

回答by TharakaNirmana

Cleaning up worked for me:

清理工作对我有用:

right click on the project-> team-> cleanup / refresh

右键单击project-> team->cleanup / refresh

回答by wu liang

This is most likely your console svn version is different to your Eclipse "SVNKIT (Pure Java)" version, you can change Preferences=>Team=>SVN=>SVN interface=>Client using "JavaHL (JNI)"

这很可能是您的控制台 svn 版本与您的 Eclipse“SVNKIT (Pure Java)”版本不同,您可以使用“JavaHL (JNI)”更改 Preferences=>Team=>SVN=>SVN interface=>Client

My case is as below, using Java HL 1.7.10 is ok, but using SVNKIt v1.7.9 will have the problem

我的情况如下,使用 Java HL 1.7.10 没问题,但使用 SVNKIt v1.7.9 会有问题

wuliang-Mac:src wwu$ svn --version
svn, version 1.7.10 (r1485443)
compiled Jul  9 2013, 12:55:03

enter image description here

在此处输入图片说明

回答by FLBKernel

As I commented in other post...

正如我在其他帖子中评论的那样......

For those that project-> team-> cleanupdoesn't work in eclipse try:

对于那些project-> team->cleanup在 Eclipse 中不起作用的尝试:

  • Force the cleanup using SVN Tortoise
  • From terminal with command svn cleanup /folder_to_cleanup
  • 使用 SVN Tortoise 强制清理
  • 从终端使用命令 svn cleanup /folder_to_cleanup

回答by madth3

There is bug reportedin SVNKit with the same error.

错误报道在SVNKit与同样的错误。

回答by wliao

In my case, project-> team-> cleanup / refreshworked for one of the files but not the other. Simply copy the command that failed from svn console on eclipse and run it in console with "svn" prefix works for me. So the syntax is:

就我而言,project-> team->cleanup / refresh适用于其中一个文件,但不适用于另一个文件。只需从 Eclipse 上的 svn 控制台复制失败的命令,并在控制台中使用“svn”前缀运行它对我有用。所以语法是:

svn commit -m "comment" -N /path/to/file

回答by Aravindh Gopi

@wu liang asnwer worked for me. but i had to goto Preferences=>Team=>SVN=>SVN Connectors=>Native JavaHL

@wu liang asnwer 对我来说有效。但我不得不去 Preferences=>Team=>SVN=>SVN Connectors=>Native JavaHL

screenshot 1:

截图1:

enter image description here

在此处输入图片说明

Screenshot 2:

截图2:

enter image description here

在此处输入图片说明

回答by sandalone

I had hard time solving this issue and I finally figured out what happened.

我很难解决这个问题,我终于弄清楚发生了什么。

If you use SVN add-on with Eclipse or IntelliJ IDEA and delete some files our of it (from system's file browser, then you will get this message as well.

如果您在 Eclipse 或 IntelliJ IDEA 中使用 SVN 附加组件并删除其中的一些文件(从系统的文件浏览器,那么您也会收到此消息。

The only way I was able to solve it in IDEA was to commit changes via external SVN tool, then reopened the IDE and checkout changes. After that I was able to commit with no such error.

我能够在 IDEA 中解决它的唯一方法是通过外部 SVN 工具提交更改,然后重新打开 IDE 并签出更改。在那之后,我能够提交没有这样的错误。

回答by elkarel

Try to execute from the terminal:

尝试从终端执行:

svn cleanup 

Team -> Refresh/Cleaunp from IDE didn't work for me.

团队 -> IDE 的刷新/清理对我不起作用。

回答by LeOn - Han Li

Encounter this when server is upgrading svn version.

服务器升级svn版本时遇到这种情况。

For IdeaIntellij user, what we need to do is

对于Idea Intellij 用户,我们需要做的是

  1. select the project root directory in the left project panel
  2. in the top menu, select VCS -> Subversion -> Cleanup
  1. 在左侧项目面板中选择项目根目录
  2. 在顶部菜单中,选择 VCS -> Subversion -> Cleanup

Now you should be able to checkin/out.

现在您应该可以签入/签出。