Files
gerrit/java/com/google/gerrit/server
Marija Savtchouk b9608bef91 Update existing change on cherry-pick with CommitApi
CommitAPI:
https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#cherry-pick-commit
When the user tries to cherry pick a change onto an already
existing change in a different branch with CommitAPI (Change-ID is
provided in the commit message,
and the change with this Change-ID exists in the destination branch), it
results in NPE.
Instead, this operation should just create a new patch set on the
existing change.

When using CommitAPI, the source commit is not associated with the
change, but the existing destination change might have cherryPickOf
already set. Reset cherryPickOf in NoteDb for this case.

Change-Id: I11beb7de9be4aa60a3c5e6a045b46156d9b310da
2020-12-13 08:40:40 +00:00
..
2020-10-26 13:30:08 +01:00
2020-07-17 15:01:37 +02:00
2020-07-23 13:08:51 +02:00
2020-07-17 11:53:29 +00:00