Class MergeValidators.GroupMergeValidator
java.lang.Object
com.google.gerrit.server.git.validators.MergeValidators.GroupMergeValidator
- All Implemented Interfaces:
- MergeValidationListener
- Enclosing class:
- MergeValidators
public static class MergeValidators.GroupMergeValidator
extends Object
implements MergeValidationListener
Validator to ensure that group refs are not mutated.
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionGroupMergeValidator(AllUsersName allUsersName, ChangeData.Factory changeDataFactory) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidonPreMerge(org.eclipse.jgit.lib.Repository repo, CodeReviewCommit.CodeReviewRevWalk revWalk, CodeReviewCommit commit, ProjectState destProject, BranchNameKey destBranch, PatchSet.Id patchSetId, IdentifiedUser caller) Validate a commit before it is merged.
- 
Constructor Details- 
GroupMergeValidator
 
- 
- 
Method Details- 
onPreMergepublic void onPreMerge(org.eclipse.jgit.lib.Repository repo, CodeReviewCommit.CodeReviewRevWalk revWalk, CodeReviewCommit commit, ProjectState destProject, BranchNameKey destBranch, PatchSet.Id patchSetId, IdentifiedUser caller) throws MergeValidationException Description copied from interface:MergeValidationListenerValidate a commit before it is merged.- Specified by:
- onPreMergein interface- MergeValidationListener
- Parameters:
- repo- the repository
- revWalk- the rev walk
- commit- commit details
- destProject- the destination project
- destBranch- the destination branch
- patchSetId- the patch set ID
- caller- the identity of the user that is recorded as the one performing the merge. In case of impersonation- caller.getRealUser()contains the user triggering the merge.
- Throws:
- MergeValidationException- if the commit fails to validate
 
 
-