I had four changes in Gerrit, each depending on previous one (except first, of course). I've abandoned second and third and reviewed first and fourth. Since first wasn't depending on anything, Gerrit managed to auto-merge it. Now, the fourth (depending on abandoned third) is a real problem.
Gerrit states Submitted, Merge Pending
with:
Change could not be merged because of a missing dependency.
The following changes must also be submitted:
and giving me change-Id of both abandoned changes. How can I get rid of this chaos?
From what I've already learnt by googling and SO-ing (especially this and this one -- doesn't help much), the entire problem arose, because I haven't been using branches, only working directly on master
.
Fine, I'll promise to be better next time, but how to fix current problem? I've tried to apply many solutions, found in the Internet or here, on SO, but none of them helps. Each git pull
and git push
claims, that both my local and remote are up-to-date, but I see no way to get rid of dependent change.