13

I get eclipse from my friend and his eclipse use his user to communicate with SVN, commit or update. I want to change to my user but i can't. I read these topics, but they doesn't work for me.

How to change credentials for SVN repository in Eclipse?

For example, my system doesn't have the svn.simple file which mentioned in this answer.

And this question:

SVN change username

When i want to use svn, it says that :

'/home/chavosh' is not a working copy

What should i do?!

Community
  • 1
  • 1

5 Answers5

21

Ask your friend to change his/her password. The next time you try to access the repository, you will be asked to provide username or password.

Alternatively, you could clear the cached credentials. There are two ways to do this depending on what client adapter, the plugin is using.

To find out which client adapter is used: Go to Windows->Preferences->Team->SVN. In the Client Interface section, check which adapter is used.

If you are using JavaHL then you need to delete files from the svn.simple directory This directory is usually located in %AppData%\Subversion\auth. (Go to command promt and echo %AppData% to find out location of the AppData directory)

If you are using SVNKit then you need to delete the .keyring file from eclipse configuration directory. On my workstation the location of this .keyring file is \configuration\org.eclipse.core.runtime

Obie L
  • 226
  • 2
  • 2
19

In windows :

  1. open run type %APPDATA%\Subversion\auth\svn.simple
  2. this will open svn.simple folder
  3. you will find a file e.g. Big Alpha Numeric file
  4. Delete that file.
  5. restart eclipse.
  6. Try to edit file from projct and commit it
  7. you can see dialog asking userName password

It worked for me.... ;)

karan
  • 3,319
  • 1
  • 35
  • 44
15

1. Goto window->show view->other

showView

2.Select SVN Repositories

other menu

SVN Repositories

4.Right click the repository that you want to change the users and click Location properties

select location properties

5. Finally change the username and password and click Finish

Edit Location Properties Window

Aravindh Gopi
  • 2,083
  • 28
  • 36
  • 3
    the only good answer so far, which doesn't suggest to delete some Eclipse files and corrupt Eclipse. – Benas Apr 26 '18 at 13:54
  • Good one, but not for all eclipse versions. I couldn't find `location properties` under the repo (right-click). There's only `properties` which does not have the option to change credentials – smilyface Feb 15 '22 at 06:50
0

If you have tortoise client in your machine then removing current user from tortoise also removes it from eclipse. At least it works for me :) You can remove current user from tortise as described here: How to change users in TortoiseSVN

ayortanli
  • 109
  • 11
0

Go to:

Window -> Preferences -> General -> Security -> Secure Storage

Then in Contents tab expand [Default Secure Storage] and SVN. Now delete these values.

Example

Tested in Eclipse Luna.

M.Bizz
  • 11
  • 2