如何清除 Perforce P4V 的最近连接列表?

发布于 2024-10-05 09:07:40 字数 185 浏览 4 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

九厘米的零° 2024-10-12 09:07:40

你使用的是Linux/Unix吗?如果是这样,您的主目录中有一个 .p4qt/ 目录。如果是 Windows,我相信你也有类似的东西。

您应该有一个名为 appsettings.xmlApplicationSettings.xml 的文件。它应该有这样的内容:

 </PropertyList>
 <StringList varName="Recent Connections">
 <String>server:1666, bob, bob_workspace</String>
 <String>server:1666, steve, steve_ws</String>
 <String>server:1666, joe, joe_workspace</String>
 </StringList>

请注意,我不知道 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 or ApplicationSettings.xml. It should have something like this:

 </PropertyList>
 <StringList varName="Recent Connections">
 <String>server:1666, bob, bob_workspace</String>
 <String>server:1666, steve, steve_ws</String>
 <String>server:1666, joe, joe_workspace</String>
 </StringList>

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.

别把无礼当个性 2024-10-12 09:07:40

对于 Mac OS X:

~/Library/Preferences/com.perforce.p4v/ApplicationSettings.xml

For Mac OS X:

~/Library/Preferences/com.perforce.p4v/ApplicationSettings.xml

风蛊 2024-10-12 09:07:40

在 Windows7 和 P4 2011.1 上略有不同;

%USERPROFILE%\.p4qt\ApplicationSettings.xml

您可以在此属性中编辑最近的连接;

<StringList varName="RecentConnections">
    <String>192.168.0.1:1337, Username, Workspacename</String>
    <String>192.168.0.1:1337, Username</String>
</StringList>

On Windows7 and P4 2011.1 it's slightly different;

%USERPROFILE%\.p4qt\ApplicationSettings.xml

You can edit the recent connections in this attribute;

<StringList varName="RecentConnections">
    <String>192.168.0.1:1337, Username, Workspacename</String>
    <String>192.168.0.1:1337, Username</String>
</StringList>
雨巷深深 2024-10-12 09:07:40

在 Windows 上,路径为 C:\Users\userName\.p4qt\ApplicationSettings.xml,您应该先退出 P4V,然后编辑 ApplicationSettings.xml,并删除以下项目:

<StringList varName="RecentConnections">
    <String>192.168.0.1:1337, Username, Workspacename</String>
    <String>192.168.0.1:1337, Username</String>
</StringList>

重新打开 P4V 和你会发现其他最近的连接都消失了...

如果你使用Visual StudioP4VS插件,那么你需要打开C:\Users\ yourName\AppData\Roaming\Perforce\P4VS\LocalSettings.ini

删除以下位置的其他项目:

<RecentConnections maxCapacity="5" type="Perforce.P4VS.MRUList">
    <RecentConnections type="Perforce.P4VS.ConnectionData">
            <ServerPort type="string">192.168.0.1:1337</ServerPort>
            <UserName type="string">yourUserName</UserName>
            <Workspace type="string">yourWorkSpace</Workspace>
    </RecentConnections>
    <RecentConnections type="Perforce.P4VS.ConnectionData">
            <ServerPort type="string">192.168.0.2:1337</ServerPort>
            <UserName type="string">yourUserName2</UserName>
            <Workspace type="string">yourWorkSpace2</Workspace>
    </RecentConnections>
    <RecentConnections type="null"/>
    <RecentConnections type="null"/>
    <RecentConnections type="null"/>
</RecentConnections>

现在,它干净了...

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:

<StringList varName="RecentConnections">
    <String>192.168.0.1:1337, Username, Workspacename</String>
    <String>192.168.0.1:1337, Username</String>
</StringList>

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:

<RecentConnections maxCapacity="5" type="Perforce.P4VS.MRUList">
    <RecentConnections type="Perforce.P4VS.ConnectionData">
            <ServerPort type="string">192.168.0.1:1337</ServerPort>
            <UserName type="string">yourUserName</UserName>
            <Workspace type="string">yourWorkSpace</Workspace>
    </RecentConnections>
    <RecentConnections type="Perforce.P4VS.ConnectionData">
            <ServerPort type="string">192.168.0.2:1337</ServerPort>
            <UserName type="string">yourUserName2</UserName>
            <Workspace type="string">yourWorkSpace2</Workspace>
    </RecentConnections>
    <RecentConnections type="null"/>
    <RecentConnections type="null"/>
    <RecentConnections type="null"/>
</RecentConnections>

Now, its clean...

奶茶白久 2024-10-12 09:07:40

在 Perforce 的更高版本(至少 Perforce Visual Client/NTX64/2012.1/500245)中,文件存储在

{UserProfileFolder}\.p4qt\ApplicationSettings.xml

In Later versions of Perforce (at least Perforce Visual Client/NTX64/2012.1/500245) the files is stored in

{UserProfileFolder}\.p4qt\ApplicationSettings.xml
黑寡妇 2024-10-12 09:07:40

Peforce 支持建议在启动 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.

伴我心暖 2024-10-12 09:07:40

不要删除整个文件夹!

对于 Windows,请转至:%USERPROFILE%.p4qt\0001Clients\WorkspaceSettings.xml

然后您将找到一些项目:

<StringList varName="RecentlyUsedWorkspaces">
    <String>workspace1.test</String>    
    <String>workspace2.test</String>
    <String>workspace3.test</String>
    <String>workspace4.test</String>
 </StringList>

您可以从此列表中删除。

Do NOT delete the entire folder!!!

For windows, go to: %USERPROFILE%.p4qt\0001Clients\WorkspaceSettings.xml

Then you will find some items:

<StringList varName="RecentlyUsedWorkspaces">
    <String>workspace1.test</String>    
    <String>workspace2.test</String>
    <String>workspace3.test</String>
    <String>workspace4.test</String>
 </StringList>

You can delete from this list.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文