public class RebaseChangeOp extends BatchUpdate.Op
Modifier and Type | Class and Description |
---|---|
static interface |
RebaseChangeOp.Factory |
Modifier and Type | Method and Description |
---|---|
com.google.gerrit.reviewdb.client.PatchSet |
getPatchSet() |
com.google.gerrit.reviewdb.client.PatchSet.Id |
getPatchSetId() |
org.eclipse.jgit.revwalk.RevCommit |
getRebasedCommit() |
void |
postUpdate(BatchUpdate.Context ctx)
Override this method to do something after the update
e.g.
|
RebaseChangeOp |
setCheckAddPatchSetPermission(boolean checkAddPatchSetPermission) |
RebaseChangeOp |
setCommitterIdent(org.eclipse.jgit.lib.PersonIdent committerIdent) |
RebaseChangeOp |
setCopyApprovals(boolean copyApprovals) |
RebaseChangeOp |
setFireRevisionCreated(boolean fireRevisionCreated) |
RebaseChangeOp |
setForceContentMerge(boolean forceContentMerge) |
RebaseChangeOp |
setValidatePolicy(CommitValidators.Policy validate) |
boolean |
updateChange(BatchUpdate.ChangeContext ctx)
Override this method to modify a change.
|
void |
updateRepo(BatchUpdate.RepoContext ctx)
Override this method to update the repo.
|
public RebaseChangeOp setCommitterIdent(org.eclipse.jgit.lib.PersonIdent committerIdent)
public RebaseChangeOp setValidatePolicy(CommitValidators.Policy validate)
public RebaseChangeOp setCheckAddPatchSetPermission(boolean checkAddPatchSetPermission)
public RebaseChangeOp setFireRevisionCreated(boolean fireRevisionCreated)
public RebaseChangeOp setForceContentMerge(boolean forceContentMerge)
public RebaseChangeOp setCopyApprovals(boolean copyApprovals)
public void updateRepo(BatchUpdate.RepoContext ctx) throws com.google.gerrit.extensions.restapi.MergeConflictException, InvalidChangeOperationException, com.google.gerrit.extensions.restapi.RestApiException, IOException, com.google.gwtorm.server.OrmException, NoSuchChangeException
BatchUpdate.RepoOnlyOp
updateRepo
in class BatchUpdate.RepoOnlyOp
ctx
- contextcom.google.gerrit.extensions.restapi.MergeConflictException
InvalidChangeOperationException
com.google.gerrit.extensions.restapi.RestApiException
IOException
com.google.gwtorm.server.OrmException
NoSuchChangeException
public boolean updateChange(BatchUpdate.ChangeContext ctx) throws com.google.gerrit.extensions.restapi.ResourceConflictException, com.google.gwtorm.server.OrmException, IOException
BatchUpdate.Op
updateChange
in class BatchUpdate.Op
ctx
- contextcom.google.gerrit.extensions.restapi.ResourceConflictException
com.google.gwtorm.server.OrmException
IOException
public void postUpdate(BatchUpdate.Context ctx) throws com.google.gwtorm.server.OrmException
BatchUpdate.RepoOnlyOp
postUpdate
in class BatchUpdate.RepoOnlyOp
ctx
- contextcom.google.gwtorm.server.OrmException
public org.eclipse.jgit.revwalk.RevCommit getRebasedCommit()
public com.google.gerrit.reviewdb.client.PatchSet.Id getPatchSetId()
public com.google.gerrit.reviewdb.client.PatchSet getPatchSet()