fifth
fifth

Reputation: 4349

Perforce, How to integrate a change to another branch?

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?

Upvotes: 18

Views: 52111

Answers (2)

imankalyan
imankalyan

Reputation: 195

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.

Upvotes: 5

user1054341
user1054341

Reputation: 3289

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.

Upvotes: 31

Related Questions