InlineEdit: Add method to read edits
This method is supposed to be used from REST endpoints and from acceptance tests. Change-Id: I1114acc280cb5b8235bf941b963e04bbdf5870f9
This commit is contained in:
@@ -17,7 +17,6 @@ package com.google.gerrit.server.edit;
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
import com.google.gerrit.reviewdb.client.Change;
|
||||
import com.google.gerrit.reviewdb.client.RefNames;
|
||||
import com.google.gerrit.reviewdb.client.RevId;
|
||||
import com.google.gerrit.server.IdentifiedUser;
|
||||
|
||||
@@ -62,8 +61,6 @@ public class ChangeEdit {
|
||||
}
|
||||
|
||||
public String getRefName() {
|
||||
return String.format("%s/edit-%d",
|
||||
RefNames.refsUsers(user.getAccountId()),
|
||||
change.getId().get());
|
||||
return ChangeEditUtil.editRefName(user.getAccountId(), change.getId());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user