122

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?

Dave
  • 15,639
  • 133
  • 442
  • 830

10 Answers10

231

Cleaning up worked for me:

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

Mohammad Faisal
  • 5,783
  • 15
  • 70
  • 117
TharakaNirmana
  • 10,237
  • 8
  • 50
  • 69
  • 16
    FWIW, this seems to be related to checking out an SVN repository with one version of the SVN client then trying to manage it in Eclipse using a newer version. – David Aug 19 '14 at 13:40
  • 25
    Sometimes I had to force the cleanup using SVN Tortoise, since Eclipse cleanup didn't work. – JuanN Nov 02 '16 at 07:38
  • 1
    Thanks @David. I did the checkout with Tortoise, but tried to commit in Eclipse. – mike Oct 27 '17 at 12:28
  • 4
    cleanup from Eclipse is not working for me. Cleanup from SVN Tortoise worked great! – Kumar S Nov 16 '17 at 18:32
  • 11
    I had to do 'svn cleanup' from the command line. After that in Eclipse I do refresh, then team->refresh/cleanup – fchen Feb 16 '18 at 16:05
  • btw, in my case I think it's related to the fact that I used chmod to remove the executible bit of some files and changed the content as well. I later figured out that I have to use 'svn propdel' to do that. – fchen Feb 16 '18 at 17:04
32

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
Community
  • 1
  • 1
FLBKernel
  • 860
  • 13
  • 21
31

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

wu liang
  • 1,993
  • 18
  • 12
  • Thanks for this feedback. I'm having trouble getting Eclipse to recognize the JavaHL SVN connector - am currently using the SVNKit connector. Going to troubleshoot that issue and if that turns out to be the problem, I'll come back and accept. – Dave Jul 29 '13 at 15:23
  • Had the same problem with Netbeans. Changing the Client from SvnKit to CLI solved the problem for me. – megadave Aug 30 '18 at 11:46
5

There is bug reported in SVNKit with the same error.

madth3
  • 7,275
  • 12
  • 50
  • 74
  • Here is a google cache of the issue for anyone scared to click: http://webcache.googleusercontent.com/search?q=cache:5E_dKYzo78oJ:https://issues.tmatesoft.com/issue/SVNKIT-384&hl=en&gl=us&strip=0&vwsrc=0 – NathanChristie Jun 23 '15 at 15:32
3

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
wliao
  • 51
  • 1
3

Try to execute from the terminal:

svn cleanup 

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

elkarel
  • 723
  • 2
  • 7
  • 20
1

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.

sandalone
  • 41,141
  • 63
  • 222
  • 338
1

@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

Aravindh Gopi
  • 2,083
  • 28
  • 36
  • In my SVN Connector only one option is available for select.That is SVNKit 1.8.12..Do I have to download the additional connector. – Soumyajit Swain Aug 21 '18 at 05:57
  • 1
    yes, you can download them [here](https://polarion.plm.automation.siemens.com/products/svn/subversive/download?utm_source=eclipse.org&utm_medium=link&utm_campaign=subversive) – Aravindh Gopi Aug 22 '18 at 05:21
  • 1
    It worked for me and I managed to checkin from eclipse instead of falling back on tortoise client – Soumyajit Swain Aug 23 '18 at 09:53
0

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....

Lee Chee Kiam
  • 11,450
  • 10
  • 65
  • 87
-1

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.

LeOn - Han Li
  • 9,388
  • 1
  • 65
  • 59
  • This answer would be ok if the question was for *Intellij*. However it is for Eclipse subversive plugin. – FLBKernel Nov 17 '17 at 10:13
  • 2
    @FLBKernel, i was led to this question when google searching this *SVN* error. So i thought it might save some other `Intellij` user some time in case google also take them here. Anyway~~ – LeOn - Han Li Nov 17 '17 at 19:26
  • I thought this question was useful despite not being eclipse related. Good for people who are directed here by the same google search. – Cody Jul 23 '20 at 23:00