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:
David Ostrovsky
2014-03-02 19:28:25 +01:00
parent b3865f2744
commit dcd0d4e4ae
3 changed files with 50 additions and 0 deletions

View File

@@ -26,4 +26,5 @@ public interface RevisionApi {
void publish() throws RestApiException;
ChangeApi cherryPick(CherryPickInput in) throws RestApiException;
ChangeApi rebase() throws RestApiException;
boolean canRebase();
}