Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I clear the list of recent connections from Perforce P4V?

Tags:

perforce

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.

like image 681
Swinders Avatar asked Nov 30 '10 16:11

Swinders


People also ask

How do I edit P4V files?

To define an editor: choose Tools > Preferences, click the Editor tab, and specify the desired editor for the file type.) Using the editor associated with the file type, make your changes. To place your revised version in the depot so other users can have access to it, right-click the file and choose Submit​.

What is tree in Perforce?

The Tree view is the page P4Web shows you when you first connect. It's where you'll spend most of your time in P4Web. You can use it to navigate through path hierarchies and run commands that affect all the files in the current path at once.

What is checkout in P4V?

Check-out ( p4 edit ) is about getting the latest version from the depot for editing. When files are checked out for edit, their permissions are set to read-write. When files are not checked out, Perforce sets them to read-only.

What is Helix P4V?

Helix Visual Client (P4V) is a desktop app that provides access to versioned files in Helix Core through a graphical interface. It includes tools for merging and visualizing code evolution.


2 Answers

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.

like image 110
Chance Avatar answered Sep 28 '22 07:09

Chance


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>
like image 31
RJFalconer Avatar answered Sep 28 '22 06:09

RJFalconer