Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy all changelist descriptions while merging in Perforce?

I am working with "my" Perforce branch, fixing some small issues in the code. Every now and then I am integrating with another branch ("main").

I write extensive changelist descriptions each time I commit to "my" branch. When I integrate, I would like to have the merging ("my->main") changelist description be a sum of descriptions I wrote for all the changelists in "my" branch since the last merge.

Is this possible?

like image 764
ynka Avatar asked Apr 26 '13 10:04

ynka


People also ask

What does p4 copy do?

Description. Using the client workspace as a staging area, the p4 copy command propagates an exact copy of the source files to the specified target by branching, replacing, or deleting files. No manual resolve is required. Changes in the target that were not previously merged into the source are overwritten.

What is p4 describe?

p4 describe displays the details of one or more changelists. For each changelist, the output includes the changelist number, the changelist creator, the client workspace name, the date the changelist was created, and the changelist description. This command also works with openable stream specifications.


1 Answers

With a little bit of scripting it should be easy. You can use p4 interchanges to get a list of all pending changelists that will be merged, extract the description from each, and use it as the changelist description when you submit the merge.

like image 128
randy-wandisco Avatar answered Sep 30 '22 16:09

randy-wandisco