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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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 Detail
-
module
public static com.google.inject.Module module()
-
isPureRevert
public boolean isPureRevert(ChangeNotes claimedRevert) throws IOException, BadRequestException
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
-
-