Convert PatchSet.Id to AutoValue
See I6982fb24 for context. Change-Id: I681421e2e3415125dc4db44c7f3bf32d37920166
This commit is contained in:
@@ -160,7 +160,7 @@ public class Rebase extends RetryingRestModifyView<RevisionResource, RebaseInput
|
||||
"base revision is missing from the destination branch: " + str);
|
||||
}
|
||||
PatchSet.Id baseId = base.patchSet().getId();
|
||||
if (change.getId().equals(baseId.getParentKey())) {
|
||||
if (change.getId().equals(baseId.changeId())) {
|
||||
throw new ResourceConflictException("cannot rebase change onto itself");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user