Package com.google.gerrit.server.git
Class PureRevertCache
java.lang.Object
com.google.gerrit.server.git.PureRevertCache
Computes and caches if a change is a pure revert of another change.
- 
Method Summary
Modifier and TypeMethodDescriptionbooleanisPureRevert(Project.NameKey project, org.eclipse.jgit.lib.ObjectId claimedRevert, org.eclipse.jgit.lib.ObjectId claimedOriginal) ReturnstrueifclaimedRevertis a pure (clean) revert ofclaimedOriginal.booleanisPureRevert(ChangeNotes claimedRevert) ReturnstrueifclaimedRevertis a pure (clean) revert of the change that is referenced inChange.getRevertOf().static com.google.inject.Modulemodule() 
- 
Method Details
- 
module
public static com.google.inject.Module module() - 
isPureRevert
ReturnstrueifclaimedRevertis a pure (clean) revert of the change that is referenced inChange.getRevertOf().- Returns:
 trueifclaimedRevertis a pure (clean) revert.- Throws:
 IOException- if there was a problem with the storage layerBadRequestException- if there is a problem with the providedChangeNotes
 - 
isPureRevert
public boolean isPureRevert(Project.NameKey project, org.eclipse.jgit.lib.ObjectId claimedRevert, org.eclipse.jgit.lib.ObjectId claimedOriginal) throws IOException, BadRequestException ReturnstrueifclaimedRevertis a pure (clean) revert ofclaimedOriginal.- Returns:
 trueifclaimedRevertis a pure (clean) revert ofclaimedOriginal.- Throws:
 IOException- if there was a problem with the storage layerBadRequestException- if there is a problem with the providedObjectIds
 
 -