Reject restoring change if its destination branch does not exist

If a branch got deleted and there was an abandoned change for this
branch, it was possible to restore this change.

Change-Id: I0b17b1b2e4d5cd97bcb1a8a06c3938626250666c
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2012-01-26 08:53:58 +01:00
parent edfffc48b6
commit a71bd46ad9
10 changed files with 161 additions and 51 deletions

View File

@@ -76,7 +76,10 @@ public class ReviewResult {
NOT_A_DRAFT,
/** Error writing change to git repository */
GIT_ERROR
GIT_ERROR,
/** The destination branch does not exist */
DEST_BRANCH_NOT_FOUND
}
protected Type type;