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 SummaryModifier 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- 
modulepublic static com.google.inject.Module module()
- 
isPureRevertReturnstrueifclaimedRevertis a pure (clean) revert of the change that is referenced inChange.getRevertOf().- Returns:
- trueif- claimedRevertis a pure (clean) revert.
- Throws:
- IOException- if there was a problem with the storage layer
- BadRequestException- if there is a problem with the provided- ChangeNotes
 
- 
isPureRevertpublic 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:
- trueif- claimedRevertis a pure (clean) revert of- claimedOriginal.
- Throws:
- IOException- if there was a problem with the storage layer
- BadRequestException- if there is a problem with the provided- ObjectIds
 
 
-