如何清除 Perforce P4V 的最近连接列表?
Perforce P4V 在“连接 -> ”菜单下保留最近连接的列表。最近的连接'。我们已将 Perforce 仓库文件移至不同的服务器,因此我仍然列出了旧的连接,但当选择它时,它会出现错误,因为它无法连接。有没有办法清除这些旧连接?
我正在使用 Perforce Visual Client/NTX86/2010.1/271261。
Perforce P4V keeps a list of recent connections under the menu 'Connections -> Recent Connections'. We have moved our Perforce depot files to a different server so I still have the old connection listed but when it is selected it errors as it can't connect. Is there a way to clear these old connections?
I am using Perforce Visual Client/NTX86/2010.1/271261.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
你使用的是Linux/Unix吗?如果是这样,您的主目录中有一个
.p4qt/
目录。如果是 Windows,我相信你也有类似的东西。您应该有一个名为
appsettings.xml
或ApplicationSettings.xml
的文件。它应该有这样的内容:请注意,我不知道 XML,但您应该能够从文件中清除它。或者,如果您不介意重置某些首选项,则可以删除此文件并重新创建它。
Are you in Linux/Unix? If so, in your home directory is a
.p4qt/
directory. If Windows, I'm sure you have something similar.You should have a file called
appsettings.xml
orApplicationSettings.xml
. It should have something like this:Please note, I do not know XML, but you should be able to clear this out of your file. Or, you can delete this file and have it be recreated if you don't mind some preferences being reset.
对于 Mac OS X:
~/Library/Preferences/com.perforce.p4v/ApplicationSettings.xml
For Mac OS X:
~/Library/Preferences/com.perforce.p4v/ApplicationSettings.xml
在 Windows7 和 P4 2011.1 上略有不同;
您可以在此属性中编辑最近的连接;
On Windows7 and P4 2011.1 it's slightly different;
You can edit the recent connections in this attribute;
在 Windows 上,路径为
C:\Users\userName\.p4qt\ApplicationSettings.xml
,您应该先退出 P4V,然后编辑 ApplicationSettings.xml,并删除以下项目:重新打开 P4V 和你会发现其他最近的连接都消失了...
如果你使用Visual Studio的P4VS插件,那么你需要打开
C:\Users\ yourName\AppData\Roaming\Perforce\P4VS\LocalSettings.ini
删除以下位置的其他项目:
现在,它干净了...
On windows, the path is
C:\Users\userName\.p4qt\ApplicationSettings.xml
, and you should quit P4V first, then edit the ApplicationSettings.xml, and remove those items in:Reopen P4V and you will find the other recent connections is gone...
If you are using the P4VS plugin for Visual Studio, then you need to open
C:\Users\yourName\AppData\Roaming\Perforce\P4VS\LocalSettings.ini
Delete the other items in:
Now, its clean...
在 Perforce 的更高版本(至少
Perforce Visual Client/NTX64/2012.1/500245
)中,文件存储在In Later versions of Perforce (at least
Perforce Visual Client/NTX64/2012.1/500245
) the files is stored inPeforce 支持建议在启动 P4V 之前删除设置文件夹 (%USERPROFILE%.p4qt),但这会删除所有自定义设置(包括自定义工具)。
使用 Windows,.p4qt/ 文件夹位于用户配置文件文件夹中。
清除过时的连接线并重新启动 P4V 获得了预期的结果。
Peforce support suggest removing the settings folder (%USERPROFILE%.p4qt) before starting P4V but this would remove all custom settings (including custom tools).
Using Windows the .p4qt/ folder is in the user profile folder.
Clearing the outdated connection lines and restarting P4V had the desired result.
不要删除整个文件夹!
对于 Windows,请转至:%USERPROFILE%.p4qt\0001Clients\WorkspaceSettings.xml
然后您将找到一些项目:
您可以从此列表中删除。
Do NOT delete the entire folder!!!
For windows, go to: %USERPROFILE%.p4qt\0001Clients\WorkspaceSettings.xml
Then you will find some items:
You can delete from this list.