Reputation: 9619
My colleague has changed a bunch of files in a specific branch (let's call it b1). He has shared with me the changelist ID.
I want to copy all those changes to another branch (b2) which is locally copied to my machine as well.
How can I achieve the same using Perforce?
Upvotes: 0
Views: 14574
Reputation: 71562
Type this into a command prompt:
p4 integrate b1/...@CHANGE,CHANGE b2/...
p4 resolve
p4 submit
where CHANGE
is the changelist number, and b1/...
and b2/...
are the paths to the two branches.
Source: https://www.perforce.com/perforce/doc.current/manuals/cmdref/
Upvotes: 3
Reputation: 1696
Details Merging Files Between Codelines
Upvotes: 1