Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gerrit submit change after abandoning its parent

Tags:

gerrit

I have a situation where I have pushed changeA and changeB to Gerrit. changeA is the parent of changeB.

changeA was abandoned. Will changeB will automatically be merged if its approved? If yes, what would its parent be?

If changeB will not automatically be merged, what do I need to do to have it merge properly?

like image 816
sam Avatar asked Mar 18 '23 13:03

sam


1 Answers

From the Gerrit UI, just abandon ChangeA, then rebase ChangeB and select the checkbox for "Change parent revision". This updates the parent of ChangeB to the current branch tip.

like image 143
Brent K. Avatar answered Apr 29 '23 08:04

Brent K.