如何在Eclipse中更改SVN资源库的凭据? [英] How to change credentials for SVN repository in Eclipse?

查看:218
本文介绍了如何在Eclipse中更改SVN资源库的凭据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中安装了Eclipse 3.4.2,它带有subclipse。另一位开发人员使用他的凭证添加了一个SVN存储库并选择了保存密码。现在每次我用SVN做任何事情,都会使用他的缓存凭证。我如何将其更改为我的?



我已经检查了workspace / .metadata / .plugins / org.tigris ...文件夹,找不到任何方式重置这些缓存的凭据。

解决方案

http://subclipse.tigris.org/wiki/PluginFAQ#head-d507c29676491f4419997a76735feb6ef0aa8cf8


用户名和密码



定义存储库时,Subclipse不会收集或存储用户名和密码凭据。这是因为JavaHL和SVNKit客户端适配器具有足够的智能,可以在需要时(包括密码更改时提示您)。



您还可以允许缓存此信息的适配器和常见问题是如何删除此缓存信息,以便再次提示?我们有一个开放的请求,将API添加到JavaHL,以便我们可以提供一个UI来执行此操作。目前,您必须手动删除缓存。缓存的位置根据所使用的客户端适配器而有所不同。



JavaHL将信息与命令行客户端相同的位置缓存在Subversion运行时配置区域中。在Windows上,它位于%APPDATA%\Subversion\auth中。在Linux和OSX上,它位于〜/ .subversion / auth中。只需使用缓存的信息查找并删除该文件。



SVNKit在Eclipse密钥环中缓存信息。默认情况下,这是一个名为.keyring的文件,它存储在Eclipse配置文件夹的根目录中。这两个值都可以用命令行选项覆盖。要清除缓存,您必须删除该文件。当您重启



时,Eclipse会创建一个新的空键盘

I have Eclipse 3.4.2 installed on Windows with subclipse. Another developer added an SVN repository with his credentials and selected 'Save password'. Now every time I do anything with SVN his cached credentials are used. How can I change them to mine?

I have already checked the 'workspace/.metadata/.plugins/org.tigris...' folders, and could not find any way to reset those cached credentials.

解决方案

http://subclipse.tigris.org/wiki/PluginFAQ#head-d507c29676491f4419997a76735feb6ef0aa8cf8:

Usernames and passwords

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

这篇关于如何在Eclipse中更改SVN资源库的凭据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆