Merge "GET edit info: Expose base patch set number" into stable-2.14
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user