Gerrit will bring together potentially invisible changes that were previously in the commit history and are located in another repository branch. Here is an example:
- checker gerrit branch
devel - create file1.txt, add, commit, click
refs/heads/temp_branch - create a file2.txt, add, commit, click on
refs/for/develto verify the code
When file2.txt is accepted and merged, file1.txt, because it is up and not in a separate change branch, marked as being in the process of verification, is also merged. This is potentially very problematic and the only solution I can find with the goal of causing every change that has been ported to each branch to be checked by code. This is not ideal, since you can have some branches with one group approving or without code verification (for some code replacement?).
The solution is to force each commit in the history to be placed in the code overview, as would be the case if file1.txt had not been moved to another branch in the same repository.
Is there a parameter in Gerrit that imposes this rule? Can anyone think of a workflow that allows you to freely click on refs/heads/without risking polluting other branches?
Many thanks.
source
share