I have many client-specs and workspaces defined for many different Perforce servers. I got a new computer and installed P4V client, but I can't see any of my client-specs because they are all specific to the old computer. Is there any way to migrate this information without laboriously re-creating each client-spec and workspace on the new system? I use the UI, not the command-line interface.
migrated from stackoverflow.com Dec 19 '12 at 20:01
This question came from our site for professional and enthusiast programmers.
The 'host' field in the workspace limits its use to that computer. Changing the host field to blank or more preferably the name of the new computer will allow it to be used on the new computer, however you must also either:
doing this ensures the workspace is in sync with the server.
To do this, click the 'workspace' icon (picture of a terminal screen), click the cancel filter icon to view all workspaces (top right of the panel, a cross over a funnel). Right click on the desired workspace and select 'edit workspace' and change the host field (in advanced tab) to the name of the new computer, or clear the host field. After doing this, the 'switch to workspace' option will appear on the context menu.
To find the name of the new computer select 'create a new workspace' from Connection menu and note the name of the 'host' field and then cancel the menu.
P4V does not have an easy method for transferring bookmarks, however bookmarks are stored in bookmarks.xml found in a directory:
If you only have one directory called '0001Clients' you're in luck, but you may have more than one of these directories so it may require searching for the right bookmarks.xml file. Once you find the right one, transfer it to the new computer which is likely to only have one of these directories and the bookmarks will appear after reloading the client.
Craig is correct, but here's a way to find the right xxxxClients directory both on the source and the target computer (you might very well have several of them on the target computer as well).
(Reloading the client was not necessary for me - the bookmarks showed up right away.)