How do I move a Perforce “workspace” folder?

后端 未结 4 821
伪装坚强ぢ
伪装坚强ぢ 2020-12-29 01:22

I\'ve just downloaded a 4.5GB depot to a location on my hard drive that is not ideal.

I\'d like to move the folder that Perforce now sees as the \"workspace\" folder

4条回答
  •  长发绾君心
    2020-12-29 01:46

    Mike's answer is almost correct, except that the p4 sync -k is not required when moving a workspace (changing the root). P4 does not care where the root is, it only tracks the files on your machine by workspace/client name.

    If you wanted to change the workspace name (which would require you to create a new workspace) and populate it with files from an already synced workspace, you would then need to run p4 sync -k to let the server know that this new workspace has these files at @changeset.

提交回复
热议问题