I am trying to determine the correct way to work with multiple branches on Gerrit, which would correspond to our workflow.
Now we work with branches: we have a wizard and a function branch. A master is an industry that we want to polish and prepare for release, while a function is obviously a field of intensive work. Now, in our particular case, when someone is working on fixing a bug, they:
- create a change intended for the main branch
- cherry picks it to target Feature branch change
- After checking the gerrit code, submit both changes.
Now, as I understand the cherry pick, it selects an individual commit and combines it with the current change. if so, I would expect that eventually there will be no merge conflicts, and indeed this workflow only works fine with GIT. However, Gerrit, most likely due to its nature (branches are not merged remotely as they are locally, and get another sha tag) lists a huge number of conflicting files at the end.
Now I have solved all these problems using the merge strategy (ours by function, they are on the host), but this does not seem right: if something was not common, it was simply discarded.
My question is: is there a safe workflow similar to the one described above that will ultimately lead to a pure merger with gerrit?
source share