[Development] Question on Gerrit workflow
Mandeep Sandhu
mandeepsandhu.chd at gmail.com
Mon Oct 21 15:03:14 CEST 2013
Hi All,
I have a newbie question on our Gerrit workflow.
Suppose a change I'm working on is split across 3 commits. Each commit
implements a part of the functionality of the change.
Once I get approval for a particular changeset, should I merge it to
staging immediately or wait for approval for all 3 and then stage them
1 by 1?
In my case I want to merge as early as possible so that CI can catch
any build errors for some of the platforms I've not tested the code
on.
The issue I faced was that while pushing one of my changesets, I
started seeing faliures because my previous changeset, which was
approved and merged to staging, was marked as closed and my push was
trying to push the same change again.
$ git push gerrit HEAD:refs/for/dev
...
...
! [remote rejected] HEAD -> refs/for/dev (change 66701 closed)
...
(Here 66701 was merged already)
How do I handle this? Should I do a 'Revert Change' for the merged
changeset so that I can push again?
Please bear with me if I've overlooked something obvious, but I'm just
learning Gerrit ropes! :)
-mandeep
More information about the Development
mailing list