How do I move a Perforce “workspace” folder?

后端 未结 4 824
伪装坚强ぢ
伪装坚强ぢ 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条回答
  •  梦毁少年i
    2020-12-29 01:33

    As long as you know what changelist you last synced to, you can do this without having to sync again. Here's how:

    1. Note the last changelist synced
    2. Copy/move the folder to the new location
    3. Update your workspace (either the root, or the depot mapping) to point at the new location
    4. Run p4 flush //depot/path/to/folder/...@

    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.

提交回复
热议问题