[Neos] [Team] Gerrit merges

Ernesto Baschny ernesto.baschny at typo3.org
Wed May 22 10:15:28 CEST 2013

Christian Müller schrieb am 22.05.2013 07:40:
> Hey,
> On 21.05.13 23:00, Aske Ertmann wrote:
>> Hello team
>> I've thought about improving commit flow since I've been a little annoyed with all the merge commits we have in our history.
> Agreed
>> Also Gerrit has a setting for only allowing submitting fast-forward changes. Therefore I propose that we set this to enforce only allowing changes that doesn't need a merge commit by Gerrit.
> Sounds good, question is if we can have that just for us or if CMS Team
> would need to have it as well?
>> This makes the history a lot cleaner and easy to get an overview of. 
> I thought there is always a merge commit, but great to hear that this is
> not the case. Still we will have the build commits :/
> So if that really helps lets try to do rebases.

This is a "per project" setting. See:


We at the TYPO3 CMS team use the "Cherry Pick" option, which means the
approved change is simply cherry-picked and committed on top of the
current HEAD.

We took that decision right from start because exactly of the reasons
Aske is complaining. The history gets very wild if you have merges for
every single fix. The TYPO3 CMS history is completely linear because of
this setting

Drawback is that once merged, the commit gets a new SHA1.

Another side effect seems to be that while cherry-picking the commit
message gets rewritten and the review information gets added to it. See:


These lines:

Change-Id: I2192bd853a1c1fada332319812acee8fe821b78a
Reviewed-on: https://review.typo3.org/20857
Reviewed-by: Markus Klein
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters

Are not in the original patch-set, just in the one that was finally
"cherry-picked". This has been useful before (especially the Link to the


Ernesto Baschny
TYPO3 CMS Core Developer
Release Manager TYPO3 4.5 & 6.2 LTS

TYPO3 .... inspiring people to share!
Get involved: typo3.org

More information about the Neos mailing list