Is there any way of getting to gerrit to check that the changes being
pushed actually have a common ancestor with the repository they are
being pushed to before accepting them? Or do I just have to be more
careful in future?
Cheers,
Simon.
There currently isn't a "common ancestry check", but it might not be
too hard to add one to Receive.java. In fact, its probably a good
idea, pushing a new history which has no common ancestor to the
destination is usually a mistake. If you *really* wanted to do that,
you could work around it by creating a merge commit which contains the
two distinct histories, and upload that merge commit for review, and
thus still have something in common with the destination project.
Patches would be appreciated. :-)
Check added in https://review.source.android.com/11267, will be in .19.
>
> Check added in https://review.source.android.com/11267, will be in .
> 19.
Thanks for finding the time to implement that - greatly appreciated.
Cheers,
Simon.