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