Search in sources :

Example 1 with GetMergeList

use of com.google.gerrit.server.restapi.change.GetMergeList in project gerrit by GerritCodeReview.

the class RevisionApiImpl method getMergeList.

@Override
public MergeListRequest getMergeList() throws RestApiException {
    return new MergeListRequest() {

        @Override
        public List<CommitInfo> get() throws RestApiException {
            try {
                GetMergeList gml = getMergeList.get();
                gml.setUninterestingParent(getUninterestingParent());
                gml.setAddLinks(getAddLinks());
                return gml.apply(revision).value();
            } catch (Exception e) {
                throw asRestApiException("Cannot get merge list", e);
            }
        }
    };
}
Also used : CommitInfo(com.google.gerrit.extensions.common.CommitInfo) ApiUtil.asRestApiException(com.google.gerrit.server.api.ApiUtil.asRestApiException) RestApiException(com.google.gerrit.extensions.restapi.RestApiException) GetMergeList(com.google.gerrit.server.restapi.change.GetMergeList)

Aggregations

CommitInfo (com.google.gerrit.extensions.common.CommitInfo)1 RestApiException (com.google.gerrit.extensions.restapi.RestApiException)1 ApiUtil.asRestApiException (com.google.gerrit.server.api.ApiUtil.asRestApiException)1 GetMergeList (com.google.gerrit.server.restapi.change.GetMergeList)1