Class SvnKitDiff

java.lang.Object
net.sf.statsvn.util.SvnDiffUtils
net.sf.statsvn.util.svnkit.SvnKitDiff
All Implemented Interfaces:
ISvnDiffProcessor

public class SvnKitDiff extends SvnDiffUtils
Performs diffs via svnkit.
Author:
jkealey, yogesh
  • Constructor Details

    • SvnKitDiff

      public SvnKitDiff(SvnKitProcessor processor)
      Performs diffs via svnkit.
      Parameters:
      processor - the base processor
  • Method Details

    • getCheckoutDirectory

      public File getCheckoutDirectory()
      Shorthand to get the checked out directory
      Returns:
      the checked out directory
    • getLineDiff

      public Vector getLineDiff(String newRevNr) throws IOException, BinaryDiffException
      Gets diffs inside one revision.
      Specified by:
      getLineDiff in interface ISvnDiffProcessor
      Overrides:
      getLineDiff in class SvnDiffUtils
      Parameters:
      newRevNr - new revision number
      Returns:
      a list of diffs that were extracted from one particular revision
      Throws:
      IOException - problem parsing the stream
      BinaryDiffException - if the error message is due to trying to diff binary files.
    • getLineDiff

      public int[] getLineDiff(String oldRevNr, String newRevNr, String filename) throws IOException, BinaryDiffException
      Gets a single diff for a file between two revisions.
      Specified by:
      getLineDiff in interface ISvnDiffProcessor
      Overrides:
      getLineDiff in class SvnDiffUtils
      Parameters:
      oldRevNr - old revision number
      newRevNr - new revision number
      filename - the filename
      Returns:
      A int[2] array of [lines added, lines removed] is returned.
      Throws:
      IOException - problem parsing the stream
      BinaryDiffException - if the error message is due to trying to diff binary files.
    • getManager

      public org.tmatesoft.svn.core.wc.SVNClientManager getManager()
      Shorthand for the svnkit client manager.
      Returns:
      the svnkit client manager
    • getSvnKitProcessor

      public SvnKitProcessor getSvnKitProcessor()
      Shorthand to get the base processor
      Returns:
      the base processor