Perforce, How to integrate a change to another branch?
Asked Answered
D

2

18

I have trunk and a release branch. If I fixed a bug in release branch, I definitely should integrate the fix back to trunk. However, I didn't find a command dedicated to integrate such a single change list; did I miss something?

Drue answered 24/8, 2012 at 9:8 Comment(2)
Do you want to just apply all changes made on the release branch back to trunk, or do you need to pick and choose particular changelists ?Attitudinize
I just need to integrate a single changelist, thxDrue
M
31

To integrate changelist 100, for example, you'd use:

p4 merge //releasebranch/...@=100 //trunk/...
p4 resolve
p4 submit

(If you have an older Perforce server you'll have to use 'integ' instead of 'merge'.)

Note that '@=100' means the same thing as '@100,100' in this context.

Mitchell answered 27/8, 2012 at 20:27 Comment(0)
P
5

I have used this:

p4 integrate -c 625466 //SrcPath/...@622912,@622912 //DestPath/...

Where CL 622912 is the one we want to integrate, and CL 625466 is the new CL.

Phycomycete answered 7/9, 2020 at 12:2 Comment(1)
After p4 integrate i had to do "p4 resolve" to get the changesMccafferty

© 2022 - 2024 — McMap. All rights reserved.