How do I move a Perforce "workspace" folder?
Solution 1:
in the P4V application:
Open the Workspace dialog: Go to Connection>Edit Current Workspace... change "Workspace root:" to where you like
If you have not already moved the files, P4V will offer to copy them for you.
Solution 2:
As long as you know what changelist you last synced to, you can do this without having to sync again. Here's how:
- Note the last changelist synced
- Copy/move the folder to the new location
- Update your workspace (either the root, or the depot mapping) to point at the new location
- Run
p4 flush //depot/path/to/folder/...@<last_changelist>
The flush command tells the server that you have the files at the path specified, at the changelist specified. It's a synonym for p4 sync -k
.