Revision API: Add method to query if revision must be rebased
With canRebase() method plugins can figure out if a specific revision
can actually be rebased, if it's not based on the latest revision of
the dependent change.
boolean canRebase = gApi.changes()
.id(change)
.revision(revision)
.canRebase();
Change-Id: Ib64a6ed5a62f83639143088624ad72d93edae3cf
This commit is contained in:
@@ -26,4 +26,5 @@ public interface RevisionApi {
|
||||
void publish() throws RestApiException;
|
||||
ChangeApi cherryPick(CherryPickInput in) throws RestApiException;
|
||||
ChangeApi rebase() throws RestApiException;
|
||||
boolean canRebase();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user