开发者

Perforce: Branch from a specific changelist perforce

开发者 https://www.devze.com 2023-01-17 06:28 出处:网络
How do you branch from a specific changelist in perforce?That 开发者_如何学Pythonis, 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

How do you branch from a specific changelist in perforce? That 开发者_如何学Pythonis, 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


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消