Rename validateForRevertCommits to validateForGerritCommits
This method can (and should) be used by other features that perform validation of commits produced by Gerrit (E.g. Gerrit is the commit author). For instance revert and upcomming cherry-pick feature. Change-Id: I0d2e76811af2328c35461e4fe85cb8998781f9f1
This commit is contained in:
committed by
Gerrit Code Review
parent
49e5977df3
commit
a10dc82536
@@ -270,7 +270,7 @@ public class ChangeUtil {
|
||||
revertCommit, user);
|
||||
|
||||
try {
|
||||
commitValidators.validateForRevertCommits(commitReceivedEvent);
|
||||
commitValidators.validateForGerritCommits(commitReceivedEvent);
|
||||
} catch (CommitValidationException e) {
|
||||
throw new InvalidChangeOperationException(e.getMessage());
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ public class CommitValidators {
|
||||
return messages;
|
||||
}
|
||||
|
||||
public List<CommitValidationMessage> validateForRevertCommits(
|
||||
public List<CommitValidationMessage> validateForGerritCommits(
|
||||
CommitReceivedEvent receiveEvent) throws CommitValidationException {
|
||||
|
||||
List<CommitValidationListener> validators =
|
||||
|
||||
Reference in New Issue
Block a user