Perforce:从特定变更列表 perforce 分支

发布于 2024-09-24 19:20:50 字数 235 浏览 5 评论 0原文

您如何从特定的变更列表中强制分支?也就是说,如果 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冰葑 2024-10-01 19:20:50

基于在 p4v 中尝试相同操作然后复制并粘贴出日志的高度科学方法,如果您正确定义了分支规范 branch_b,以下代码片段应该可以满足您的需要:

p4 integrate -o -b branch_b -s //depot/main/...@n

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 integrate -o -b branch_b -s //depot/main/...@n
无所的.畏惧 2024-10-01 19:20:50

原始命令的问题在于必须将更改列表指定为范围。这是一个奇怪的怪癖,但确实如此。正确的命令是:

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/...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文