Perforce相当于svn switch
在 svn/cvs 中,我经常创建 main/trunk 的本地签出以开始在代码中工作,然后,当真正的提交分支准备好时,切换到它并开始在那里提交代码。
我知道 Perforce 有一个完全不同的工作流程,但我想知道是否有任何方法可以执行切换并使本地代码开始指向远程存储库中与以前不同的分支。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。本质上是:
p4sync
来更新您的工作副本其中几个部分在 2011.1 版本中更好:
Perforce 有一个新的 P4Sandbox工具现已推出有限测试版。该工具用于私人本地工作,并且它确实有一个您会感觉非常熟悉的
p4 switch
命令。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.