In svn/cvs I often created a local checkout of main/trunk to start working in the code, and then, when real commit branch is ready, switch to it and start commiting the code there.
I am aware Perforce have quite a different workflow, but I wonder if there is any way to perform a switch and have the local code start pointing to a different branch in the remote repository than before.
Yes. Essentially:
p4 sync to update your working copySeveral parts of that are better in the 2011.1 release:
p4 update command that does a fast workspace update for in-place branchingPerforce has a new P4Sandbox tool out in a limited beta right now. That tool is for private local work, and it does have a p4 switch command that will feel very familiar to you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With