Search This Blog

Sunday 19 May 2013

How to change SVN-credentials in Eclipse

For Windows Users :-

Goto C:\Users\%User_Name%\AppData\Roaming\Subversion and remove the auth directory.
 Just be aware if you are connected to more than 1 SVN server that this will remove the authentication for all of the SVN servers you have configured.

 If you want to reset just a single server:
Inside the auth directory you should see a folder called svn.simple.
Open each of those files with a text editor to determine which one to remove and then remove just that single file.

say: Goto the following location in ur system --

 C:\Users\%User_Name%\AppData\Roaming\Subversion\auth\svn.simple            (On Windows 7)
--OR--
 C:\Documents and Settings[username]\Application Data\subversion\auth\svn.simple   (On versions previous to Windows 7)

 Delete the Hexadecimal file present over there (under the 'svn.simple' directory).
Now the next time you will hit any svn operations it will again ask for your svn credentials..you can reset over here again.

 NOTE: 
Incase you cannot find the APPDATA directory/folder ---do check for the hidden folders option / if some of the folders under C:\Users\'#UserName#'\ are not Hidden.

-----------------------------------------------------------------------------------------------------------


For Mac OS X ,i guess this would work :-

Goto folder /$HOME (/Users/{user home}/). You will see file '.eclipse_keyring'. Remove it. All saved credentials will be lost.
Now the next time you Restart Eclipse or Hit any svn-operations(Team-update/commit/etc) it will again ask for your svn credentials.
Now,you can reset over here once again.




-----------------------------------------------------------------------------------------------------------

This may Interest You :

Subclipse does not collect or store username and password credentials when defining a repository.
This is because the JavaHL and SVNKit client adapters are intelligent enough to prompt you for this information when they need to -- including when your password has changed.

    You can also allow the adapter to cache this information and a common question is how do you delete this cached information so that you can be prompted again?
We have an open request to have an API added to JavaHL so that we could provide a UI to do this. Currently, you have to manually delete the cache.The location of the cache varies based on the client adapter used.

    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.
Both of these values can be overriden with command line options. To clear the cache, you have to delete the file.Eclipse will create a new empty keyring when you restart

Just Like, in my case I've been using JavaHL, which cashes credential data in the Subversion runtime configuration area. 
On Windows this was in "C:\Users\%User_Name%\AppData\Roaming\Subversion\auth\svn.simple" in one of the files with a long HEX name.