ChangeEditUtil: Use PatchSetUtil for patch sets

Change-Id: Ibe9c0f6454b7516827aa13c074cde8537dee96a5
This commit is contained in:
Dave Borowitz
2016-01-15 14:30:02 -05:00
parent 3ecfd76674
commit 5448410de1
2 changed files with 40 additions and 24 deletions

View File

@@ -65,6 +65,7 @@ import com.google.gerrit.extensions.api.changes.HashtagsInput;
import com.google.gerrit.extensions.registration.DynamicMap;
import com.google.gerrit.extensions.registration.DynamicMap.Entry;
import com.google.gerrit.extensions.registration.DynamicSet;
import com.google.gerrit.extensions.restapi.AuthException;
import com.google.gerrit.extensions.restapi.ResourceConflictException;
import com.google.gerrit.extensions.restapi.RestApiException;
import com.google.gerrit.reviewdb.client.Account;
@@ -2096,8 +2097,8 @@ public class ReceiveCommits {
Optional<ChangeEdit> edit = null;
try {
edit = editUtil.byChange(change, user);
} catch (IOException e) {
edit = editUtil.byChange(changeCtl);
} catch (AuthException | IOException e) {
log.error("Cannt retrieve edit", e);
return false;
}