Class SvnNgDiff
java.lang.Object
org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner<V,T>
org.tmatesoft.svn.core.internal.wc2.SvnLocalOperationRunner<V,T>
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner<java.lang.Void,SvnDiff>
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgDiff
- All Implemented Interfaces:
ISVNCanceller,ISVNEventHandler,ISvnOperationRunner<java.lang.Void,SvnDiff>
-
Field Summary
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULLFields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckDiffTargetExists(SVNURL url, long revision, long otherRevision, SVNRepository repository) private SvnDiffCallbackcreateDiffCallback(ISvnDiffGenerator generator, boolean reverse, long revisionNumber1, long revisionNumber2) private voiddoDiff(SvnTarget target1, SVNRevision revision1, SVNRevision pegRevision, SvnTarget target2, SVNRevision revision2) private voiddoDiffReposRepos(SvnTarget svnTarget1, SVNRevision revision1, SVNRevision pegRevision, SvnTarget svnTarget2, SVNRevision revision2) private voiddoDiffReposWC(SvnTarget target1, SVNRevision revision1, SVNRevision pegRevision, SvnTarget target2, SVNRevision revision2, boolean reverse) private voiddoDiffWC(java.io.File localAbspath, ISvnDiffCallback callback) private voiddoDiffWCWC(SvnTarget target1, SVNRevision revision1, SvnTarget target2, SVNRevision revision2) private SVNDepthgetDiffDepth(SVNDepth depth) private ISvnDiffGeneratorprivate longgetRevisionNumber(SVNRevision revision, SVNRepository repository, SvnTarget target) private SVNURLgetURL(java.io.File path1) Returns runner's working copy generation it is able to operate on.booleanisApplicable(SvnDiff operation, SvnWcGeneration wcGeneration) Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)private booleanprivate booleanisRevisionBase(SVNRevision revision2) private SVNURLresolvePeggedDiffTargetUrl(SVNURL url, java.io.File path, SVNRevision pegRevision, SVNRevision revision) protected java.lang.Voidrun(SVNWCContext context) Methods inherited from class org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner
deleteDeleteFiles, getRepositoryAccess, matchesChangelist, reset, run, setRepositoryAccessMethods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnLocalOperationRunner
getFirstTarget, sleepForTimestampMethods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner
checkCancelled, getOperation, getWcContext, handleEvent, handleEvent, run, setOperation, setWcContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SvnNgDiff
public SvnNgDiff()
-
-
Method Details
-
getWcGeneration
Description copied from interface:ISvnOperationRunnerReturns runner's working copy generation it is able to operate on.- Specified by:
getWcGenerationin interfaceISvnOperationRunner<java.lang.Void,SvnDiff> - Overrides:
getWcGenerationin classSvnNgOperationRunner<java.lang.Void,SvnDiff> - Returns:
- working copy generation of the runner.
-
isApplicable
Description copied from interface:ISvnOperationRunnerReturns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)- Specified by:
isApplicablein interfaceISvnOperationRunner<java.lang.Void,SvnDiff> - Overrides:
isApplicablein classSvnLocalOperationRunner<java.lang.Void,SvnDiff> - Parameters:
operation- operation that needs runnerwcGeneration- working copy generation- Returns:
trueif the runner is applicable, otherwisefalse- Throws:
SVNException
-
run
- Specified by:
runin classSvnNgOperationRunner<java.lang.Void,SvnDiff> - Throws:
SVNException
-
doDiff
private void doDiff(SvnTarget target1, SVNRevision revision1, SVNRevision pegRevision, SvnTarget target2, SVNRevision revision2) throws SVNException - Throws:
SVNException
-
doDiffReposRepos
private void doDiffReposRepos(SvnTarget svnTarget1, SVNRevision revision1, SVNRevision pegRevision, SvnTarget svnTarget2, SVNRevision revision2) throws SVNException - Throws:
SVNException
-
doDiffReposWC
private void doDiffReposWC(SvnTarget target1, SVNRevision revision1, SVNRevision pegRevision, SvnTarget target2, SVNRevision revision2, boolean reverse) throws SVNException - Throws:
SVNException
-
doDiffWCWC
private void doDiffWCWC(SvnTarget target1, SVNRevision revision1, SvnTarget target2, SVNRevision revision2) throws SVNException - Throws:
SVNException
-
doDiffWC
- Throws:
SVNException
-
resolvePeggedDiffTargetUrl
private SVNURL resolvePeggedDiffTargetUrl(SVNURL url, java.io.File path, SVNRevision pegRevision, SVNRevision revision) throws SVNException - Throws:
SVNException
-
checkDiffTargetExists
private void checkDiffTargetExists(SVNURL url, long revision, long otherRevision, SVNRepository repository) throws SVNException - Throws:
SVNException
-
getURL
- Throws:
SVNException
-
getRevisionNumber
private long getRevisionNumber(SVNRevision revision, SVNRepository repository, SvnTarget target) throws SVNException - Throws:
SVNException
-
isPeggedDiff
private boolean isPeggedDiff() -
isRevisionBase
-
getDiffDepth
-
createDiffCallback
private SvnDiffCallback createDiffCallback(ISvnDiffGenerator generator, boolean reverse, long revisionNumber1, long revisionNumber2) -
getDiffGenerator
-