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:
David Ostrovsky
2014-04-25 20:28:06 +02:00
parent 8d3c257e68
commit 0034fabb30
3 changed files with 124 additions and 4 deletions

View File

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