Package com.google.gerrit.server.git
Class MergedByPushOp
java.lang.Object
com.google.gerrit.server.git.MergedByPushOp
- All Implemented Interfaces:
BatchUpdateOp
,RepoOnlyOp
Operation to close a change on push.
When we find a change corresponding to a commit that is pushed to a branch directly, we close the change. This class marks the change as merged, and sends out the email notification.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
Override this method to do something after the update e.g.setPatchSetProvider
(com.google.inject.Provider<PatchSet> patchSetProvider) boolean
Override this method to modify a change.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.gerrit.server.update.RepoOnlyOp
updateRepo
-
Method Details
-
getMergedIntoRef
-
setPatchSetProvider
-
updateChange
Description copied from interface:BatchUpdateOp
Override this method to modify a change.- Specified by:
updateChange
in interfaceBatchUpdateOp
- Parameters:
ctx
- context- Returns:
- whether anything was changed that might require a write to the metadata storage.
- Throws:
IOException
-
postUpdate
Description copied from interface:RepoOnlyOp
Override this method to do something after the update e.g. send email or run hooks- Specified by:
postUpdate
in interfaceRepoOnlyOp
- Parameters:
ctx
- context
-