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 TypeMethodDescriptionboolean
isPureRevert
(Project.NameKey project, org.eclipse.jgit.lib.ObjectId claimedRevert, org.eclipse.jgit.lib.ObjectId claimedOriginal) Returnstrue
ifclaimedRevert
is a pure (clean) revert ofclaimedOriginal
.boolean
isPureRevert
(ChangeNotes claimedRevert) Returnstrue
ifclaimedRevert
is a pure (clean) revert of the change that is referenced inChange.getRevertOf()
.static com.google.inject.Module
module()
-
Method Details
-
module
public static com.google.inject.Module module() -
isPureRevert
Returnstrue
ifclaimedRevert
is a pure (clean) revert of the change that is referenced inChange.getRevertOf()
.- Returns:
true
ifclaimedRevert
is 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 Returnstrue
ifclaimedRevert
is a pure (clean) revert ofclaimedOriginal
.- Returns:
true
ifclaimedRevert
is a pure (clean) revert ofclaimedOriginal
.- Throws:
IOException
- if there was a problem with the storage layerBadRequestException
- if there is a problem with the providedObjectId
s
-