You could still ask him to embed Change-Ids into his commits.
Just send him a copy of the commit-msg hook from Gerrit and request
that he install it if he's going to continue to send you changes.
> All of these commits are jammed by the first one, which has a
> path conflict. Step #3 looks like a lot of work to do for each of
> these commits individually. Is there a quicker way?
No. Change-Id was the invention we came up with to provide a
quicker way of doing a bulk rebase and replacement into Gerrit.
> Can I tell gerrit
> to just reset to the commit before the first one, then resubmit them
> all with a push?
No. You'll have to go through and abandon each change, and then
resubmit them all, and then get them reviewed again. Which won't
make a reviewer happy because a new change makes it impossible for
them to quickly review the delta from the prior version of that
same change.
> Or is that just going to get me back to "path conflict" land?
I still contend that you've effectively done what I described
earlier, which is to modify the same file concurrently with another
commit and now are expecting Gerrit to merge the file contents.
It won't do that and spits back this error instead.
If all 70 commits are ready to be submitted and merged, you might
be able to get them to go in by creating a merge commit between
the current branch head and the commit of the most recent change.
Upload that merge commit for review. Submit it first, then start
to submit all of the other commits in backwards order by following
down the Dependencies links in Gerrit's web UI. Eventually when
all 71 commits are in the submitted queue, Gerrit will submit the
entire group to the branch.
I recently ran into the same problem and the best way to fix it is to
- do an interactive rebase
- delete the change that is causing Gerrit path conflict
go to "conflict merge land" and resolve conflicts- push to refs/for/master
- review all the changes
Now it should be OK. If you still see changes from your previous rebase attempts, it is best abandon them.I hope it helps.
" In other words, Gerrit's definition
of conflict is narrower that Git's"
Why exactly is that? Is there a way to fall back to git's conflict definition?
We have "Submit: Cherry-pick" on, are using a recent version of gerrit, and it seems that:
review1 +1 -> buildbot1 Verify+1 -> Submit [FAILS path conflict]
review2 +1 -> buildbot2 Verify+1 -> Submit cherry pick
should really be
review1 +1 -> buildbot1 Verify+1 -> Submit cherry pick
since __the exact same operation__ is done (assuming rebase_1_patch == cherry_pick)
Automatically resolve conflict"
[1] on your project.--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.