Saturday, December 8, 2012

Clearing user credentials for svn repository in subclipse

Some times, we come across a situation where we want to remove the username/password that is being used by subclipse for accessing svn repository. 

JavaHL caches the information in the same location as the command line client -- in the Subversion runtime configuration area. On Windows this is located in %APPDATA%\Subversion\auth. On Linux and OSX it is located in ~/.subversion/auth. Just find and delete the file with the cached information.
SVNKit caches information in the Eclipse keyring. By default this is a file named .keyring that is stored in the root of the Eclipse configuration folder. 
 To clear the cache, you have to delete the file. Eclipse will create a new empty keyring when you restart.

In short, we have to delete  -
1. files under  %APPDATA%\Subversion\auth and 
2. other file named .keyring under eclipse configuration folder