Fix updating changes that fail to merge

If a submitted change fails to merge due an error (e.g. inconsistent
data or a pre merge validation found an issue) the change state should
be set back to 'New', but it stays as 'Submitted, Merge Pending'. It
should also display a proper error message to the user doing the
submit and add a change message to the change that contains the error
message. Both is currently not happening and the user has no idea why
the change got stuck in 'Submitted, Merge Pending' state.

This change ensures that all changes which cannot be merged due to an
error are properly updated.

Change-Id: Idd8da6a4cd089d2a7b09cbb60342612f1c5256e9
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
(cherry picked from commit 851f7017fd8728616406c605bd5b906706894bc7)
1 file changed