Merge "GET edit info: Expose base patch set number" into stable-2.14

This commit is contained in:
David Pursehouse
2017-05-03 09:09:59 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ import java.util.Map;
public class EditInfo {
public CommitInfo commit;
public int basePatchSetNumber;
public String baseRevision;
public Map<String, FetchInfo> fetch;
public Map<String, FileInfo> files;

View File

@@ -51,6 +51,7 @@ public class ChangeEditJson {
EditInfo out = new EditInfo();
out.commit = fillCommit(edit.getEditCommit());
out.baseRevision = edit.getBasePatchSet().getRevision().get();
out.basePatchSetNumber = edit.getBasePatchSet().getPatchSetId();
if (downloadCommands) {
out.fetch = fillFetchMap(edit);
}