Friday, April 13, 2007

Subclipse annoyance

To help the unwary that will follow in my footsteps:

How to change the stored credentials for a subversion repository in Eclipse (using Subclipse)
Subclipse is a wonderfull tool that helps a bunch when working with eclipse on a svn repo. However there are annoyances. This one i lost an hour on today.

Imagine that you have a friend that starts working on your machine and checks out a project. While he's working he doesn't want to provide credentials on every commit so he checks the save-pass checkbox. Now you have a project on which all commits get done as his user. Now you want to continue working on the project after he's gone. But you don't want to assume his identity. You need to remove/change the stored credentials. And if possible you don't want to do it with a nice button or option in the menu... Don't get your hopes up :/

So you try:
  1. fiddling with the properties of the project -> no luck
  2. fiddling with the properties of the location in the repository explorer -> no luck
  3. deleting the repository and recreating it
  4. deleting the project and recreating it
  5. combinations of 3 and 4 laced with power cycles -> no luck
The problem is hinted at here http://svn.haxx.se/subusers/archive-2006-08/0030.shtml.

Another problem you're experiencing is that subclipse uses JavaHL or SVNKit for the connection. These adapters are conveniently storing credentials for you. Subclipse doesn't care and doesn't provide an interface to influence this.

If you don't want to look for the config files and "fix" it from the comfort of eclipse. You can around this by just switching interfaces from Window->Preferences->Team->SVN
(Otherwise just go on and fiddle with the authentication files as described in the link)

Well, how's that for a bit of useless information?

No comments: