Perforce:从特定变更列表 perforce 分支
您如何从特定的变更列表中强制分支?也就是说,如果 main 是我的主代码行,并且我想从变更列表 n 中创建 main 的分支 b,那么执行此操作的语法是什么?
我尝试过:
//depot/main/...@n //users/me/sandbox/...
在我的分支规范中,但出现错误。
还有
p4 集成 -b 分支_b @n
似乎也不起作用。
提前致谢。
-大卫
How do you branch from a specific changelist in perforce? That is, if main is my main codeline, and I want to create a branch b off of main from a changelist n, what is the syntax to do this?
I've tried:
//depot/main/...@n //users/me/sandbox/...
in my branch spec, but get errors.
And
p4 integrate -b branch_b @n
doesn't seem to work either.
Thanks in advance.
-David
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
基于在 p4v 中尝试相同操作然后复制并粘贴出日志的高度科学方法,如果您正确定义了分支规范
branch_b
,以下代码片段应该可以满足您的需要:Based on the highly scientific method of attempting the same action in p4v and then copying and pasting out of the log, the following snippet should do what you need, provided you have your branch specification
branch_b
defined correctly:原始命令的问题在于必须将更改列表指定为范围。这是一个奇怪的怪癖,但确实如此。正确的命令是:
p4 integ //depot/main/...@1,@n //users/me/sandbox/...
The problem with the original command is that the changelist has to be specified as a range. It's an odd quirk but there it is. The correct command is:
p4 integ //depot/main/...@1,@n //users/me/sandbox/...