Class SvnNgMergeCallback2
java.lang.Object
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgMergeCallback2
- All Implemented Interfaces:
ISvnDiffCallback2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate static classprivate classprivate static classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SVNWCContextprivate SvnNgMergeCallback2.FileBatonprivate final SvnNgMergeDriverprivate SvnNgRepositoryAccess -
Constructor Summary
ConstructorsConstructorDescriptionSvnNgMergeCallback2(SVNWCContext context, SvnNgMergeDriver mergeDriver, SvnNgRepositoryAccess repositoryAccess) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanareFilesSame(java.io.File olderAbsPath, SVNProperties originalProps, java.io.File mineAbsPath) private booleanarePropertiesSame(SVNProperties originalProps, SVNProperties workingProps) private voidcheckReposMatch(SVNURL reposRootUrl, java.io.File localAbsPath, SVNURL url) private voidcompleteDirectoryAdd(java.io.File localAbsPath, SVNProperties newOriginalProps, SVNURL copyFromUrl, long copyFromRevision) voiddirAdded(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource copyFromSource, SvnDiffSource rightSource, SVNProperties copyFromProps, SVNProperties rightProps, java.lang.Object dirBaton) voiddirChanged(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource, SVNProperties leftProps, SVNProperties rightProps, SVNProperties propChanges, java.lang.Object dirBaton) voiddirClosed(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource, java.lang.Object dirBaton) voiddirDeleted(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SVNProperties leftProps, java.lang.Object dirBaton) voiddirOpened(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource, SvnDiffSource copyFromSource, java.lang.Object dirBaton) voiddirPropsChanged(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource, SVNProperties leftProps, SVNProperties rightProps, SVNProperties propChanges) voidfileAdded(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource copyFromSource, SvnDiffSource rightSource, java.io.File copyFromFile, java.io.File rightFile, SVNProperties copyFromProps, SVNProperties rightProps) voidfileChanged(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource, java.io.File leftFile, java.io.File rightFile, SVNProperties leftProps, SVNProperties rightProps, boolean fileModified, SVNProperties propChanges) voidfileClosed(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource) voidfileDeleted(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, java.io.File leftFile, SVNProperties leftProps) voidfileOpened(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource, SvnDiffSource copyFromSource, boolean createDirBaton, java.lang.Object dirBaton) private SVNPropertiesfilterSelfReferentialMergeInfo(SVNProperties props, java.io.File targetAbsPath, SVNRepository svnRepository) private voidprivate SVNConflictVersion[]makeConflictVersions(java.io.File victimAbsPath, SVNNodeKind nodeKind, SVNURL rootUrl, SvnNgMergeDriver.MergeSource mergeSource, java.io.File targetAbsPath) private SvnNgMergeCallback2.MergeOutcomemerge(java.io.File leftAbsPath, java.io.File rightAbsPath, java.io.File targetAbsPath, java.lang.String leftLabel, java.lang.String rightLabel, java.lang.String targetLabel, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean dryRun, java.lang.String diff3Cmd, SVNDiffOptions mergeOptions, SVNProperties originalProps, SVNProperties propChanges, boolean mergeContentNeeded, boolean mergePropsNeeded, ISVNConflictHandler conflictResolver) voidnodeAbsent(SvnDiffCallbackResult result, java.io.File relPath, java.lang.Object dirBaton) private voidnotifyMergeBegin(java.io.File localAbsPath, boolean deleteAction) private SVNWCContext.ObstructionDataperformObstructionCheck(java.io.File localAbsPath) private SVNPropertiesprepareMergePropsChanged(java.io.File localAbsPath, SVNProperties propChanges) private voidrecordSkip(java.io.File localAbsPath, SVNNodeKind kind, SVNEventAction action, SVNStatusType state) private voidrecordTreeConflict(java.io.File localAbsPath, SvnNgMergeCallback2.DirectoryBaton parentBaton, SVNNodeKind nodeKind, SVNConflictAction action, SVNConflictReason reason, SVNWCConflictDescription17 existingConflict, boolean notifyTreeConflict) private voidrecordUpdateAdd(java.io.File localAbsPath, SVNNodeKind kind, boolean notifyReplaced) private voidrecordUpdateDelete(java.io.File localAbsPath, SVNNodeKind kind, SvnNgMergeCallback2.DirectoryBaton parentBaton) private voidrecordUpdateUpdate(java.io.File localAbsPath, SVNNodeKind kind, SVNStatusType contentState, SVNStatusType propState) private voidremoveSourceGap(SVNMergeRange range, SVNMergeRangeList implicitSrcGap) private SVNURLreposLocations(SVNURL url, long pegRevision, SVNURL reposRootUrl, java.lang.String reposUuid, long opRevision, SVNRepository svnRepository) splitMergeInfoOnRevision(java.util.Map<java.lang.String, SVNMergeRangeList> mergeInfo, long revision) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
mergeDriver
-
currentFile
-
context
-
repositoryAccess
-
-
Constructor Details
-
SvnNgMergeCallback2
public SvnNgMergeCallback2(SVNWCContext context, SvnNgMergeDriver mergeDriver, SvnNgRepositoryAccess repositoryAccess)
-
-
Method Details
-
fileOpened
public void fileOpened(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource, SvnDiffSource copyFromSource, boolean createDirBaton, java.lang.Object dirBaton) throws SVNException - Specified by:
fileOpenedin interfaceISvnDiffCallback2- Throws:
SVNException
-
fileChanged
public void fileChanged(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource, java.io.File leftFile, java.io.File rightFile, SVNProperties leftProps, SVNProperties rightProps, boolean fileModified, SVNProperties propChanges) throws SVNException - Specified by:
fileChangedin interfaceISvnDiffCallback2- Throws:
SVNException
-
fileAdded
public void fileAdded(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource copyFromSource, SvnDiffSource rightSource, java.io.File copyFromFile, java.io.File rightFile, SVNProperties copyFromProps, SVNProperties rightProps) throws SVNException - Specified by:
fileAddedin interfaceISvnDiffCallback2- Throws:
SVNException
-
fileDeleted
public void fileDeleted(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, java.io.File leftFile, SVNProperties leftProps) throws SVNException - Specified by:
fileDeletedin interfaceISvnDiffCallback2- Throws:
SVNException
-
fileClosed
public void fileClosed(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource) throws SVNException - Specified by:
fileClosedin interfaceISvnDiffCallback2- Throws:
SVNException
-
dirOpened
public void dirOpened(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource, SvnDiffSource copyFromSource, java.lang.Object dirBaton) throws SVNException - Specified by:
dirOpenedin interfaceISvnDiffCallback2- Throws:
SVNException
-
dirChanged
public void dirChanged(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource, SVNProperties leftProps, SVNProperties rightProps, SVNProperties propChanges, java.lang.Object dirBaton) throws SVNException - Specified by:
dirChangedin interfaceISvnDiffCallback2- Throws:
SVNException
-
dirDeleted
public void dirDeleted(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SVNProperties leftProps, java.lang.Object dirBaton) throws SVNException - Specified by:
dirDeletedin interfaceISvnDiffCallback2- Throws:
SVNException
-
dirAdded
public void dirAdded(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource copyFromSource, SvnDiffSource rightSource, SVNProperties copyFromProps, SVNProperties rightProps, java.lang.Object dirBaton) throws SVNException - Specified by:
dirAddedin interfaceISvnDiffCallback2- Throws:
SVNException
-
dirPropsChanged
public void dirPropsChanged(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource, SVNProperties leftProps, SVNProperties rightProps, SVNProperties propChanges) throws SVNException - Throws:
SVNException
-
dirClosed
public void dirClosed(SvnDiffCallbackResult result, java.io.File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource, java.lang.Object dirBaton) throws SVNException - Specified by:
dirClosedin interfaceISvnDiffCallback2- Throws:
SVNException
-
nodeAbsent
public void nodeAbsent(SvnDiffCallbackResult result, java.io.File relPath, java.lang.Object dirBaton) throws SVNException - Specified by:
nodeAbsentin interfaceISvnDiffCallback2- Throws:
SVNException
-
handlePendingNotifications
- Throws:
SVNException
-
merge
private SvnNgMergeCallback2.MergeOutcome merge(java.io.File leftAbsPath, java.io.File rightAbsPath, java.io.File targetAbsPath, java.lang.String leftLabel, java.lang.String rightLabel, java.lang.String targetLabel, SVNConflictVersion leftVersion, SVNConflictVersion rightVersion, boolean dryRun, java.lang.String diff3Cmd, SVNDiffOptions mergeOptions, SVNProperties originalProps, SVNProperties propChanges, boolean mergeContentNeeded, boolean mergePropsNeeded, ISVNConflictHandler conflictResolver) throws SVNException - Throws:
SVNException
-
recordUpdateUpdate
private void recordUpdateUpdate(java.io.File localAbsPath, SVNNodeKind kind, SVNStatusType contentState, SVNStatusType propState) throws SVNException - Throws:
SVNException
-
recordUpdateAdd
private void recordUpdateAdd(java.io.File localAbsPath, SVNNodeKind kind, boolean notifyReplaced) throws SVNException - Throws:
SVNException
-
recordUpdateDelete
private void recordUpdateDelete(java.io.File localAbsPath, SVNNodeKind kind, SvnNgMergeCallback2.DirectoryBaton parentBaton) throws SVNException - Throws:
SVNException
-
notifyMergeBegin
- Throws:
SVNException
-
checkReposMatch
private void checkReposMatch(SVNURL reposRootUrl, java.io.File localAbsPath, SVNURL url) throws SVNException - Throws:
SVNException
-
removeSourceGap
-
prepareMergePropsChanged
private SVNProperties prepareMergePropsChanged(java.io.File localAbsPath, SVNProperties propChanges) throws SVNException - Throws:
SVNException
-
makeConflictVersions
private SVNConflictVersion[] makeConflictVersions(java.io.File victimAbsPath, SVNNodeKind nodeKind, SVNURL rootUrl, SvnNgMergeDriver.MergeSource mergeSource, java.io.File targetAbsPath) -
recordSkip
private void recordSkip(java.io.File localAbsPath, SVNNodeKind kind, SVNEventAction action, SVNStatusType state) throws SVNException - Throws:
SVNException
-
performObstructionCheck
private SVNWCContext.ObstructionData performObstructionCheck(java.io.File localAbsPath) throws SVNException - Throws:
SVNException
-
recordTreeConflict
private void recordTreeConflict(java.io.File localAbsPath, SvnNgMergeCallback2.DirectoryBaton parentBaton, SVNNodeKind nodeKind, SVNConflictAction action, SVNConflictReason reason, SVNWCConflictDescription17 existingConflict, boolean notifyTreeConflict) throws SVNException - Throws:
SVNException
-
filterSelfReferentialMergeInfo
private SVNProperties filterSelfReferentialMergeInfo(SVNProperties props, java.io.File targetAbsPath, SVNRepository svnRepository) throws SVNException - Throws:
SVNException
-
reposLocations
private SVNURL reposLocations(SVNURL url, long pegRevision, SVNURL reposRootUrl, java.lang.String reposUuid, long opRevision, SVNRepository svnRepository) throws SVNException - Throws:
SVNException
-
splitMergeInfoOnRevision
private SvnNgMergeCallback2.SplitMergeInfo splitMergeInfoOnRevision(java.util.Map<java.lang.String, SVNMergeRangeList> mergeInfo, long revision) -
areFilesSame
private boolean areFilesSame(java.io.File olderAbsPath, SVNProperties originalProps, java.io.File mineAbsPath) throws SVNException - Throws:
SVNException
-
arePropertiesSame
-
completeDirectoryAdd
private void completeDirectoryAdd(java.io.File localAbsPath, SVNProperties newOriginalProps, SVNURL copyFromUrl, long copyFromRevision) throws SVNException - Throws:
SVNException
-