Class PureRevertCache


  • public class PureRevertCache
    extends Object
    Computes and caches if a change is a pure revert of another change.
    • Method Detail

      • module

        public static com.google.inject.Module module()
      • isPureRevert

        public boolean isPureRevert​(Project.NameKey project,
                                    org.eclipse.jgit.lib.ObjectId claimedRevert,
                                    org.eclipse.jgit.lib.ObjectId claimedOriginal)
                             throws IOException,
                                    BadRequestException
        Returns true if claimedRevert is a pure (clean) revert of claimedOriginal.
        Returns:
        true if claimedRevert is 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