Class SVNMergeCallback
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.AbstractDiffCallback
-
- org.tmatesoft.svn.core.internal.wc.SVNMergeCallback
-
- Direct Known Subclasses:
SVNMergeCallback15
public class SVNMergeCallback extends AbstractDiffCallback
- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringmyAddedPathprotected java.util.MapmyConflictedPathsprotected SVNDiffOptionsmyDiffOptionsprotected booleanmyIsAddNecessitatedMergeprotected booleanmyIsDryRunprotected booleanmyIsForceprotected SVNMergeDrivermyMergeDriverprotected SVNURLmyURL
-
Constructor Summary
Constructors Constructor Description SVNMergeCallback(SVNAdminArea adminArea, SVNURL url, boolean force, boolean dryRun, SVNDiffOptions options, java.util.Map conflictedPathsGetter, SVNMergeDriver mergeDriver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanareFilesTheSame(java.io.File older, SVNProperties originalProps, java.io.File mine, SVNAdminArea adminArea)private booleanarePropsTheSame(SVNProperties props1, SVNProperties props2)java.io.FilecreateTempDirectory()protected voiddelete(java.io.File path, boolean force, boolean dryRun, boolean keepLocal)SVNStatusTypedirectoryAdded(java.lang.String path, long revision, boolean[] isTreeConflicted)SVNStatusType[]directoryClosed(java.lang.String path, boolean[] isTreeConflicted)SVNStatusTypedirectoryDeleted(java.lang.String path, boolean[] isTreeConflicted)voiddirectoryOpened(java.lang.String path, long revision, boolean[] isTreeConflicted)SVNStatusType[]fileAdded(java.lang.String path, java.io.File file1, java.io.File file2, long revision1, long revision2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted)SVNStatusType[]fileChanged(java.lang.String path, java.io.File file1, java.io.File file2, long revision1, long revision2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted)SVNStatusTypefileDeleted(java.lang.String path, java.io.File file1, java.io.File file2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties, boolean[] isTreeConflicted)java.util.MapgetConflictedPaths()private SVNNodeKindgetDiskKind(java.lang.String path)protected java.io.FilegetFile(java.lang.String path)private SVNStatusTypegetStatusForObstructedOrMissing(java.lang.String path)private SVNNodeKindgetWorkingNodeKind(SVNEntry entry, java.lang.String path)booleanisDiffCopiedAsAdded()booleanisDiffUnversioned()SVNStatusTypepropertiesChanged(java.lang.String path, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted)protected SVNAdminArearetrieve(java.io.File path, boolean lenient)-
Methods inherited from class org.tmatesoft.svn.core.internal.wc.AbstractDiffCallback
addDeletedPath, categorizeProperties, clearDeletedPaths, getAdminArea, getDisplayPath, getWCAccess, isPathDeleted, setBasePath, setIsConflicted
-
-
-
-
Field Detail
-
myIsDryRun
protected boolean myIsDryRun
-
myURL
protected SVNURL myURL
-
myIsAddNecessitatedMerge
protected boolean myIsAddNecessitatedMerge
-
myAddedPath
protected java.lang.String myAddedPath
-
myIsForce
protected boolean myIsForce
-
myDiffOptions
protected SVNDiffOptions myDiffOptions
-
myConflictedPaths
protected java.util.Map myConflictedPaths
-
myMergeDriver
protected SVNMergeDriver myMergeDriver
-
-
Constructor Detail
-
SVNMergeCallback
public SVNMergeCallback(SVNAdminArea adminArea, SVNURL url, boolean force, boolean dryRun, SVNDiffOptions options, java.util.Map conflictedPathsGetter, SVNMergeDriver mergeDriver)
-
-
Method Detail
-
createTempDirectory
public java.io.File createTempDirectory() throws SVNException- Specified by:
createTempDirectoryin classAbstractDiffCallback- Throws:
SVNException
-
isDiffUnversioned
public boolean isDiffUnversioned()
- Specified by:
isDiffUnversionedin classAbstractDiffCallback
-
isDiffCopiedAsAdded
public boolean isDiffCopiedAsAdded()
- Specified by:
isDiffCopiedAsAddedin classAbstractDiffCallback
-
getConflictedPaths
public java.util.Map getConflictedPaths()
-
propertiesChanged
public SVNStatusType propertiesChanged(java.lang.String path, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException
- Specified by:
propertiesChangedin classAbstractDiffCallback- Throws:
SVNException
-
directoryAdded
public SVNStatusType directoryAdded(java.lang.String path, long revision, boolean[] isTreeConflicted) throws SVNException
- Specified by:
directoryAddedin classAbstractDiffCallback- Throws:
SVNException
-
directoryDeleted
public SVNStatusType directoryDeleted(java.lang.String path, boolean[] isTreeConflicted) throws SVNException
- Specified by:
directoryDeletedin classAbstractDiffCallback- Throws:
SVNException
-
directoryOpened
public void directoryOpened(java.lang.String path, long revision, boolean[] isTreeConflicted) throws SVNException- Specified by:
directoryOpenedin classAbstractDiffCallback- Throws:
SVNException
-
fileChanged
public SVNStatusType[] fileChanged(java.lang.String path, java.io.File file1, java.io.File file2, long revision1, long revision2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException
- Specified by:
fileChangedin classAbstractDiffCallback- Throws:
SVNException
-
fileAdded
public SVNStatusType[] fileAdded(java.lang.String path, java.io.File file1, java.io.File file2, long revision1, long revision2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException
- Specified by:
fileAddedin classAbstractDiffCallback- Throws:
SVNException
-
fileDeleted
public SVNStatusType fileDeleted(java.lang.String path, java.io.File file1, java.io.File file2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties, boolean[] isTreeConflicted) throws SVNException
- Specified by:
fileDeletedin classAbstractDiffCallback- Throws:
SVNException
-
directoryClosed
public SVNStatusType[] directoryClosed(java.lang.String path, boolean[] isTreeConflicted) throws SVNException
- Specified by:
directoryClosedin classAbstractDiffCallback- Throws:
SVNException
-
getFile
protected java.io.File getFile(java.lang.String path)
-
retrieve
protected SVNAdminArea retrieve(java.io.File path, boolean lenient) throws SVNException
- Throws:
SVNException
-
delete
protected void delete(java.io.File path, boolean force, boolean dryRun, boolean keepLocal) throws SVNException- Throws:
SVNException
-
areFilesTheSame
protected boolean areFilesTheSame(java.io.File older, SVNProperties originalProps, java.io.File mine, SVNAdminArea adminArea) throws SVNException- Throws:
SVNException
-
getStatusForObstructedOrMissing
private SVNStatusType getStatusForObstructedOrMissing(java.lang.String path)
-
getWorkingNodeKind
private SVNNodeKind getWorkingNodeKind(SVNEntry entry, java.lang.String path)
-
getDiskKind
private SVNNodeKind getDiskKind(java.lang.String path)
-
arePropsTheSame
private boolean arePropsTheSame(SVNProperties props1, SVNProperties props2)
-
-