Getting “CHECKOUT can only be performed on a versi

2019-01-13 14:17发布

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:

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?

8条回答
Deceive 欺骗
2楼-- · 2019-01-13 14:45

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)"

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

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

enter image description here

查看更多
祖国的老花朵
3楼-- · 2019-01-13 14:49

Cleaning up worked for me:

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

查看更多
\"骚年 ilove
4楼-- · 2019-01-13 14:50

There is bug reported in SVNKit with the same error.

查看更多
Ridiculous、
5楼-- · 2019-01-13 14:54

In my case, project -> team -> cleanup / refresh worked 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:

svn commit -m "comment" -N /path/to/file
查看更多
Animai°情兽
6楼-- · 2019-01-13 14:56

Encounter this when server is upgrading svn version.

For Idea Intellij user, what we need to do is

  1. select the project root directory in the left project panel
  2. in the top menu, select VCS -> Subversion -> Cleanup

Now you should be able to checkin/out.

查看更多
劳资没心,怎么记你
7楼-- · 2019-01-13 15:07

As I commented in other post...

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

  • Force the cleanup using SVN Tortoise
  • From terminal with command svn cleanup /folder_to_cleanup
查看更多
登录 后发表回答