Perforce Public Knowledge Base - Renaming a Workspace
Perforce Software logo
Reset Search
 

 

Article

Renaming a Workspace

« Go Back

Information

 
Problem

How do I rename a client workspace?

Solution
Perforce does not provide a rename mechanism for client workspaces. However, if a user does not have any files checked out the following procedure can be used to create a new workspace using the same specifications as the old one and update the server's meta data.

1. Use the old workspace as a template to create a new one.
p4 client -t old-workspace new-workspace
Double check that the Root: is the same for the old and new workspace.

2. Update the server metadata with the revisions synced to the new workspace.
p4 -c new-workspace sync -k @old-workspace
3. Check the list of files synced to the new client workspace.
p4 -c new-workspace have
4. Delete the old client workspace.
p4 client -d old-workspace
Related Links

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255