Class SvnKitDiff
java.lang.Object
net.sf.statsvn.util.SvnDiffUtils
net.sf.statsvn.util.svnkit.SvnKitDiff
- All Implemented Interfaces:
ISvnDiffProcessor
-
Field Summary
Fields inherited from class SvnDiffUtils
BINARY_TYPE, INDEX_MARKER, processor, PROPERTY_CHANGE, PROPERTY_NAME, PROPERTY_NAME_LINE, RESULT_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionShorthand to get the checked out directorygetLineDiff(String newRevNr) Gets diffs inside one revision.int[]getLineDiff(String oldRevNr, String newRevNr, String filename) Gets a single diff for a file between two revisions.org.tmatesoft.svn.core.wc.SVNClientManagerShorthand for the svnkit client manager.Shorthand to get the base processorMethods inherited from class SvnDiffUtils
appendResults, callSvnDiff, callSvnDiff, getProcessor, isBinaryErrorMessage, parseDiff, parseMultipleDiffStream, parseSingleDiffStream, verifyOutput
-
Constructor Details
-
SvnKitDiff
Performs diffs via svnkit.- Parameters:
processor- the base processor
-
-
Method Details
-
getCheckoutDirectory
Shorthand to get the checked out directory- Returns:
- the checked out directory
-
getLineDiff
Gets diffs inside one revision.- Specified by:
getLineDiffin interfaceISvnDiffProcessor- Overrides:
getLineDiffin classSvnDiffUtils- Parameters:
newRevNr- new revision number- Returns:
- a list of diffs that were extracted from one particular revision
- Throws:
IOException- problem parsing the streamBinaryDiffException- 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:
getLineDiffin interfaceISvnDiffProcessor- Overrides:
getLineDiffin classSvnDiffUtils- Parameters:
oldRevNr- old revision numbernewRevNr- new revision numberfilename- the filename- Returns:
- A int[2] array of [lines added, lines removed] is returned.
- Throws:
IOException- problem parsing the streamBinaryDiffException- 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
Shorthand to get the base processor- Returns:
- the base processor
-