Class SvnPatch
java.lang.Object
org.tmatesoft.svn.core.internal.wc2.patch.SvnPatch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interfaceprivate static enumprivate static enumprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<SvnDiffHunk>(package private) Map<String,SVNMergeRangeList> private Fileprivate Fileprivate SvnDiffCallback.OperationKindprivate SVNPatchFileStreamprivate Fileprivate Map<String,SvnPropertiesPatch> private booleanprivate Mapprivate static final SvnPatch.Transition[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddPropertyHunk(String propName, SvnDiffHunk hunk, SvnDiffCallback.OperationKind operation) getHunks()private static Filebooleanprivate booleanparseHunkHeader(String header, SvnDiffHunk hunk, String atat) private voidparseHunks(SVNPatchFileStream patchFileStream, boolean ignoreWhitespace) private booleanparseMergeInfo(String line, SvnDiffHunk hunk) parseNextHunk(boolean[] isProperty, String[] propName, SvnDiffCallback.OperationKind[] propOperation, SVNPatchFileStream patchStream, boolean ignoreWhitespace) static SvnPatchparseNextPatch(SvnPatchFile patchFile, boolean reverse, boolean ignoreWhitespace) private booleanparseOffset(int[] offset, String range) private StringparsePropName(String header, String indicator) private booleanparseRange(int[] start, int[] length, StringBuilder range) voidsetMergeInfo(Map<String, SVNMergeRangeList> mergeInfo) voidsetNewFileName(File newFileName) voidsetOldFileName(File oldFileName) voidsetOperation(SvnDiffCallback.OperationKind operation) voidsetReverse(boolean reverse) voidsetReverseMergeInfo(Map reverseMergeInfo)
-
Field Details
-
TRANSITIONS
-
hunks
-
propPatches
-
operation
-
reverse
private boolean reverse -
mergeInfo
Map<String,SVNMergeRangeList> mergeInfo -
reverseMergeInfo
-
oldFileName
-
newFileName
-
path
-
patchFileStream
-
-
Constructor Details
-
SvnPatch
public SvnPatch()
-
-
Method Details
-
parseNextPatch
public static SvnPatch parseNextPatch(SvnPatchFile patchFile, boolean reverse, boolean ignoreWhitespace) throws IOException, SVNException - Throws:
IOExceptionSVNException
-
parseHunks
private void parseHunks(SVNPatchFileStream patchFileStream, boolean ignoreWhitespace) throws IOException, SVNException - Throws:
IOExceptionSVNException
-
parseNextHunk
public SvnDiffHunk parseNextHunk(boolean[] isProperty, String[] propName, SvnDiffCallback.OperationKind[] propOperation, SVNPatchFileStream patchStream, boolean ignoreWhitespace) throws IOException, SVNException - Throws:
IOExceptionSVNException
-
parseMergeInfo
- Throws:
SVNException
-
parsePropName
- Throws:
SVNException
-
parseHunkHeader
-
parseRange
-
parseOffset
-
addPropertyHunk
private void addPropertyHunk(String propName, SvnDiffHunk hunk, SvnDiffCallback.OperationKind operation) -
getOldFileName
-
getNewFileName
-
getHunks
-
getPropPatches
-
getOperation
-
isReverse
public boolean isReverse() -
getMergeInfo
-
getReverseMergeInfo
-
setMergeInfo
-
setReverseMergeInfo
-
setReverse
public void setReverse(boolean reverse) -
setOldFileName
-
setNewFileName
-
setOperation
-
grabFileName
-