Convert PatchSet.Id to AutoValue

See I6982fb24 for context.

Change-Id: I681421e2e3415125dc4db44c7f3bf32d37920166
This commit is contained in:
Dave Borowitz
2019-04-19 08:44:05 -07:00
parent 245af2a3f8
commit 766a93d2a0
86 changed files with 235 additions and 259 deletions

View File

@@ -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");
}