Integrating multiple changelists on perforce

sbr picture sbr · Jul 11, 2013 · Viewed 7.2k times · Source

I have a list of changelists to be merged from the trunk to branch.

Is there a way to automate integrating multiple changelists in perforce ?

Answer

jamesdlin picture jamesdlin · Jul 11, 2013

You can integrate a single change by doing:

p4 integrate //depot/source/...@CLN1,CLN1 //depot/destination/...

And you then can integrate additional changes on top of that before submitting:

p4 integrate //depot/source/...@CLN2,CLN2 //depot/destination/...
p4 integrate //depot/source/...@CLN3,CLN3 //depot/destination/...

It should be easy for you to write a script that loops over a list of change numbers and executes the appropriate p4 integrate command for each one.