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?

11 Answers 11

231

Cleaning up worked for me:

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

6
  • 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
    Commented Aug 19, 2014 at 13:40
  • 25
    Sometimes I had to force the cleanup using SVN Tortoise, since Eclipse cleanup didn't work.
    – JuanN
    Commented Nov 2, 2016 at 7:38
  • 1
    Thanks @David. I did the checkout with Tortoise, but tried to commit in Eclipse.
    – mike
    Commented Oct 27, 2017 at 12:28
  • 4
    cleanup from Eclipse is not working for me. Cleanup from SVN Tortoise worked great!
    – Kumar S
    Commented Nov 16, 2017 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
    Commented Feb 16, 2018 at 16:05
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
4
  • Anyway, @khituras I recommend you to change from svn to git :P
    – FLBKernel
    Commented Aug 10, 2017 at 6:54
  • Oh, I already did, but there are still old projects in svn :-D
    – khituras
    Commented Aug 10, 2017 at 8:37
  • 4
    svn cleanup worked for me in a way that none of the other suggested interventions on this page did. Thanks! Commented Jan 25, 2019 at 21:43
  • 1
    On MacOS I used "brew reinstall svn" followed by "svn cleanup /folder_to_cleanup". Worked great.
    – Sean N.
    Commented Jan 30, 2020 at 17:32
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

2
  • 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
    Commented Jul 29, 2013 at 15:23
  • Had the same problem with Netbeans. Changing the Client from SvnKit to CLI solved the problem for me.
    – megadave
    Commented Aug 30, 2018 at 11:46
5

There is bug reported in SVNKit with the same error.

1
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
3

Try to execute from the terminal:

svn cleanup 

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

1
  • This is the common case for 2020-06 (4.16.0). You have to use the terminal to do the cleanup. Commented Sep 20, 2021 at 17:54
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.

1
  • Nothing new, check @wuLiang´s answer. You have used different versions of SVN clients.
    – tak3shi
    Commented May 30, 2016 at 10:51
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

3
  • 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. Commented Aug 21, 2018 at 5:57
  • 1
    yes, you can download them here Commented Aug 22, 2018 at 5:21
  • 1
    It worked for me and I managed to checkin from eclipse instead of falling back on tortoise client Commented Aug 23, 2018 at 9: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....

0

You have to close your Eclipse IDE or which ever IDE you are running your java project with. Then open terminal and type this:

svn cleanup /path/to/your/project/rootfolder

Reopen Eclipse IDE and try committing again, this should work!!!

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

3
  • This answer would be ok if the question was for Intellij. However it is for Eclipse subversive plugin.
    – FLBKernel
    Commented Nov 17, 2017 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~~ Commented Nov 17, 2017 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
    Commented Jul 23, 2020 at 23:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.