Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating multiple changelists on perforce

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 ?

like image 690
sbr Avatar asked Dec 26 '22 00:12

sbr


1 Answers

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.

like image 197
jamesdlin Avatar answered Jan 03 '23 04:01

jamesdlin