Class SvnNgMergeCallback
java.lang.Object
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgMergeCallback
- All Implemented Interfaces:
ISvnDiffCallback
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddPathWithAddedMergeInfo(File localAbsPath) private voidaddPathWithDeletedMergeInfo(File localAbsPath) private booleanprivate voidcheckReposMatch(File path, SVNURL url) private booleancompareFiles(File oldPath, SVNProperties oldProps, File minePath) private booleancompareProps(SVNProperties p1, SVNProperties p2) voiddirAdded(SvnDiffCallbackResult result, File path, long revision, String copyFromPath, long copyFromRevision) voiddirClosed(SvnDiffCallbackResult result, File path, boolean isAdded) voiddirDeleted(SvnDiffCallbackResult result, File path) voiddirOpened(SvnDiffCallbackResult result, File path, long revision) voiddirPropsChanged(SvnDiffCallbackResult result, File path, boolean isAdded, SVNProperties propChanges, SVNProperties originalProperties) voidfileAdded(SvnDiffCallbackResult result, File path, File leftFile, File rightFile, long rev1, long rev2, String mimeType1, String mimeType2, File copyFromPath, long copyFromRevision, SVNProperties propChanges, SVNProperties originalProperties) voidfileChanged(SvnDiffCallbackResult result, File path, File tmpFile1, File tmpFile2, long rev1, long rev2, String mimetype1, String mimeType2, SVNProperties propChanges, SVNProperties originalProperties) voidfileDeleted(SvnDiffCallbackResult result, File path, File leftFile, File rightFile, String mimeType1, String mimeType2, SVNProperties originalProperties) voidfileOpened(SvnDiffCallbackResult result, File path, long revision) private SVNPropertiesfilterSelfReferentialMergeInfo(SVNProperties props, File localAbsPath, boolean honorMergeInfo, boolean sameRepos, boolean reintegrateMerge, SVNRepository repos) private Fileprivate SVNWCContextprivate SVNDiffOptionsprivate Collection<File>private Collection<File>private SVNRepositoryprivate SVNRepositoryprivate SvnRepositoryAccessprivate SVNURLprivate longprivate SVNURLprivate longprivate SVNURLprivate Fileprivate booleanisDryRun()private booleanisForce()private booleanprivate booleanprivate booleanprivate booleanprivate SVNConflictVersion[]makeConflictVersions(File target, SVNNodeKind kind) private SVNTreeConflictDescriptionmakeTreeConflict(File path, SVNNodeKind kind, SVNConflictAction action, SVNConflictReason reason) private SVNWCContext.MergePropertiesInfomergePropChanges(File localAbsPath, SVNProperties propChanges, SVNProperties originalProperties) protected static SVNPropertiesprivate voidsetAddedPath(File path) private voidsetDryRunAddtions(Collection<File> set) private voidsetDryRunDeletions(Collection<File> set) private Map<String,SVNMergeRangeList>[] splitMergeInfoOnRevision(Map<String, SVNMergeRangeList> mergeinfo, long revision) private voidtreeConflict(File path, SVNNodeKind kind, SVNConflictAction action, SVNConflictReason reason) private voidtreeConflictOnAdd(File path, SVNNodeKind kind, SVNConflictAction action, SVNConflictReason reason)
-
Field Details
-
conflictedPaths
-
driver
-
-
Constructor Details
-
SvnNgMergeCallback
-
-
Method Details
-
getConflictedPaths
-
fileOpened
- Specified by:
fileOpenedin interfaceISvnDiffCallback- Throws:
SVNException
-
fileChanged
public void fileChanged(SvnDiffCallbackResult result, File path, File tmpFile1, File tmpFile2, long rev1, long rev2, String mimetype1, String mimeType2, SVNProperties propChanges, SVNProperties originalProperties) throws SVNException - Specified by:
fileChangedin interfaceISvnDiffCallback- Throws:
SVNException
-
fileAdded
public void fileAdded(SvnDiffCallbackResult result, File path, File leftFile, File rightFile, long rev1, long rev2, String mimeType1, String mimeType2, File copyFromPath, long copyFromRevision, SVNProperties propChanges, SVNProperties originalProperties) throws SVNException - Specified by:
fileAddedin interfaceISvnDiffCallback- Throws:
SVNException
-
fileDeleted
public void fileDeleted(SvnDiffCallbackResult result, File path, File leftFile, File rightFile, String mimeType1, String mimeType2, SVNProperties originalProperties) throws SVNException - Specified by:
fileDeletedin interfaceISvnDiffCallback- Throws:
SVNException
-
setDryRunDeletions
-
setDryRunAddtions
-
dirDeleted
- Specified by:
dirDeletedin interfaceISvnDiffCallback- Throws:
SVNException
-
dirOpened
- Specified by:
dirOpenedin interfaceISvnDiffCallback- Throws:
SVNException
-
dirAdded
public void dirAdded(SvnDiffCallbackResult result, File path, long revision, String copyFromPath, long copyFromRevision) throws SVNException - Specified by:
dirAddedin interfaceISvnDiffCallback- Throws:
SVNException
-
dirPropsChanged
public void dirPropsChanged(SvnDiffCallbackResult result, File path, boolean isAdded, SVNProperties propChanges, SVNProperties originalProperties) throws SVNException - Specified by:
dirPropsChangedin interfaceISvnDiffCallback- Throws:
SVNException
-
dirClosed
- Specified by:
dirClosedin interfaceISvnDiffCallback- Throws:
SVNException
-
checkReposMatch
- Throws:
SVNException
-
mergePropChanges
private SVNWCContext.MergePropertiesInfo mergePropChanges(File localAbsPath, SVNProperties propChanges, SVNProperties originalProperties) throws SVNException - Throws:
SVNException
-
addPathWithAddedMergeInfo
-
addPathWithDeletedMergeInfo
-
filterSelfReferentialMergeInfo
private SVNProperties filterSelfReferentialMergeInfo(SVNProperties props, File localAbsPath, boolean honorMergeInfo, boolean sameRepos, boolean reintegrateMerge, SVNRepository repos) throws SVNException - Throws:
SVNException
-
splitMergeInfoOnRevision
private Map<String,SVNMergeRangeList>[] splitMergeInfoOnRevision(Map<String, SVNMergeRangeList> mergeinfo, long revision) -
omitMergeInfoChanges
-
isHonorMergeInfo
private boolean isHonorMergeInfo() -
makeConflictVersions
private SVNConflictVersion[] makeConflictVersions(File target, SVNNodeKind kind) throws SVNException - Throws:
SVNException
-
treeConflictOnAdd
private void treeConflictOnAdd(File path, SVNNodeKind kind, SVNConflictAction action, SVNConflictReason reason) throws SVNException - Throws:
SVNException
-
makeTreeConflict
private SVNTreeConflictDescription makeTreeConflict(File path, SVNNodeKind kind, SVNConflictAction action, SVNConflictReason reason) throws SVNException - Throws:
SVNException
-
treeConflict
private void treeConflict(File path, SVNNodeKind kind, SVNConflictAction action, SVNConflictReason reason) throws SVNException - Throws:
SVNException
-
compareProps
- Throws:
SVNException
-
compareFiles
private boolean compareFiles(File oldPath, SVNProperties oldProps, File minePath) throws SVNException - Throws:
SVNException
-
getContext
-
isReintegrateMerge
private boolean isReintegrateMerge() -
isRecordOnly
private boolean isRecordOnly() -
isDryRun
private boolean isDryRun() -
isForce
private boolean isForce() -
isSameRepos
private boolean isSameRepos() -
getDiffOptions
-
getAddedPath
-
setAddedPath
-
areSourcesAncestral
private boolean areSourcesAncestral() -
getTargetPath
-
getRepos1
-
getRepos2
-
getReposRootURL
-
getRepositoryAccess
-
getSource1URL
-
getSource2URL
-
getSource1Rev
private long getSource1Rev() -
getSource2Rev
private long getSource2Rev() -
getDryRunDeletions
-
getDryRunAdditions
-