GET edit info: Expose base patch set number
Change-Id: I68e42543f72cf7b72420f34748711d837ba676f2
This commit is contained in:
committed by
David Ostrovsky
parent
f52b42d133
commit
77fbd2189f
@@ -18,6 +18,7 @@ import java.util.Map;
|
|||||||
|
|
||||||
public class EditInfo {
|
public class EditInfo {
|
||||||
public CommitInfo commit;
|
public CommitInfo commit;
|
||||||
|
public int basePatchSetNumber;
|
||||||
public String baseRevision;
|
public String baseRevision;
|
||||||
public Map<String, FetchInfo> fetch;
|
public Map<String, FetchInfo> fetch;
|
||||||
public Map<String, FileInfo> files;
|
public Map<String, FileInfo> files;
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ public class ChangeEditJson {
|
|||||||
EditInfo out = new EditInfo();
|
EditInfo out = new EditInfo();
|
||||||
out.commit = fillCommit(edit.getEditCommit());
|
out.commit = fillCommit(edit.getEditCommit());
|
||||||
out.baseRevision = edit.getBasePatchSet().getRevision().get();
|
out.baseRevision = edit.getBasePatchSet().getRevision().get();
|
||||||
|
out.basePatchSetNumber = edit.getBasePatchSet().getPatchSetId();
|
||||||
if (downloadCommands) {
|
if (downloadCommands) {
|
||||||
out.fetch = fillFetchMap(edit);
|
out.fetch = fillFetchMap(edit);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user