Subclipse (1.8.5) requires a cleanup / update cycle to detect changes made to TortoiseSVN (1.7.4)

My problem:

Subclipse does not update status overlay icons in eclipse after I locked / unlocked some files with TortoiseSVN in Windows Explorer (and vice versa).

Is this the expected behavior or am I missing settings?

Files have the svn property "svn: needs-lock".

I can synchronize Subclipse again by first clicking "Team - Refresh / Cleanup" and then "Refresh F5".

I am not 100% sure, but I think that with Subclipse 1.6.x and TortoiseSVN 1.6.x, I was able to just hit F5 in eclipse and the status was updated correctly.

Thank you for your time.

+5
source share
3 answers

I do not think that you will need to make the second F5, but for this reason we added the command Team> Refresh / Cleanup.

With pre-SVN 1.7.x, any change in the files caused by the working copy is released in all hidden .svn folders for the change. When you press F5 in Eclipse, it will see these modified files and disable the notifications that Subclipse will see and use to update the scenery.

With SVN 1.7, all this information is consolidated in one place, and it looks like it does not even live inside your Eclipse project folder. Thus, F5 in Eclipse effectively does nothing, because files on the file system that Eclipse does not see have been changed. Eclipse does not send any notifications.

The Team> Refresh / Cleanup parameter invokes the same Eclipse action as F5, but also triggers an explicit update of the cached SVN information, regardless of whether Eclipse sees any changes.

+10
source

Just for a more detailed explanation of how to create a keyboard shortcut:

I was once quite desperate to get this keyboard binding to work, and after a lot of blows to the head, I also had to include the “SVN Command Group” in my look at eclipse (as described here: SVN Key Binding does not work in Eclipse ):

enter image description here

+4
source

You can bind the F5 key to the "Clean / Update" option in the SVN menu.

First you need to go to the Window> Configure Perspective> Command Group Availability drop-down menu and check the "SVN" checkbox.

With this option, you will get a SVN drop-down menu with all the relevant commands.

Then you will go to "Settings"> "General"> "Keys":

  • untie the key F5 if you want to use this key
  • associate the %CleanupAction.label with F5 or any useful key (for example, Shift + F5 if you do not want the F5 key to be untied.)
+2
source

All Articles