ChangeScreen2: Show "Included in" information for merged changes
Bug: Issue 2146 Change-Id: I324fd798f5b6a0acc001e80588289126305cbe71
This commit is contained in:
committed by
David Pursehouse
parent
ca4a4870a2
commit
9a0fd2df40
@@ -14,6 +14,7 @@
|
||||
|
||||
package com.google.gerrit.client.changes;
|
||||
|
||||
import com.google.gerrit.client.changes.ChangeInfo.IncludedInInfo;
|
||||
import com.google.gerrit.client.rpc.NativeString;
|
||||
import com.google.gerrit.client.rpc.RestApi;
|
||||
import com.google.gerrit.reviewdb.client.PatchSet;
|
||||
@@ -69,6 +70,10 @@ public class ChangeApi {
|
||||
return call(id, "detail");
|
||||
}
|
||||
|
||||
public static void includedIn(int id, AsyncCallback<IncludedInInfo> cb) {
|
||||
call(id, "in").get(cb);
|
||||
}
|
||||
|
||||
public static RestApi revision(int id, String revision) {
|
||||
return change(id).view("revisions").id(revision);
|
||||
}
|
||||
|
||||
@@ -282,4 +282,12 @@ public class ChangeInfo extends JavaScriptObject {
|
||||
protected MergeableInfo() {
|
||||
}
|
||||
}
|
||||
|
||||
public static class IncludedInInfo extends JavaScriptObject {
|
||||
public final native JsArrayString branches() /*-{ return this.branches; }-*/;
|
||||
public final native JsArrayString tags() /*-{ return this.tags; }-*/;
|
||||
|
||||
protected IncludedInInfo() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user