Package com.google.gerrit.server.git
Class PureRevertCache
- java.lang.Object
- 
- com.google.gerrit.server.git.PureRevertCache
 
- 
 public class PureRevertCache extends Object Computes and caches if a change is a pure revert of another change.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPureRevert(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 Detail- 
modulepublic static com.google.inject.Module module() 
 - 
isPureRevertpublic boolean isPureRevert(ChangeNotes claimedRevert) throws IOException, BadRequestException ReturnstrueifclaimedRevertis 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
 
 
- 
 
-