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

EclipseSvnCommitSubversive

Eclipse Problem Overview


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?

Eclipse Solutions


Solution 1 - Eclipse

Cleaning up worked for me:

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

Solution 2 - Eclipse

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

Solution 3 - Eclipse

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

Solution 4 - Eclipse

There is bug reported in SVNKit with the same error.

Solution 5 - Eclipse

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

Solution 6 - Eclipse

Try to execute from the terminal:

svn cleanup 

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

Solution 7 - Eclipse

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.

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.

Solution 8 - Eclipse

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

screenshot 1:

enter image description here

Screenshot 2:

enter image description here

Solution 9 - Eclipse

For whomever is using SmartSVN (in MacOS) and Eclipse, if after clean up at Eclipse using the accepted answer is still not working, you may try to clean up at SmartSVN, top menu -> Modify -> Clean Up....

Solution 10 - Eclipse

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDaveView Question on Stackoverflow
Solution 1 - EclipseTharakaNirmanaView Answer on Stackoverflow
Solution 2 - Eclipsewu liangView Answer on Stackoverflow
Solution 3 - EclipseFLBKernelView Answer on Stackoverflow
Solution 4 - Eclipsemadth3View Answer on Stackoverflow
Solution 5 - EclipsewliaoView Answer on Stackoverflow
Solution 6 - EclipseelkarelView Answer on Stackoverflow
Solution 7 - EclipsesandaloneView Answer on Stackoverflow
Solution 8 - EclipseAravindh GopiView Answer on Stackoverflow
Solution 9 - EclipseLee Chee KiamView Answer on Stackoverflow
Solution 10 - EclipseLeOn - Han LiView Answer on Stackoverflow