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>
public class SvnNgDiff extends SvnNgOperationRunner<java.lang.Void,SvnDiff>
-
-
Field Summary
-
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULL
-
Fields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description SvnNgDiff()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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 ISvnDiffGeneratorgetDiffGenerator()private longgetRevisionNumber(SVNRevision revision, SVNRepository repository, SvnTarget target)private SVNURLgetURL(java.io.File path1)SvnWcGenerationgetWcGeneration()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 booleanisPeggedDiff()private 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, setRepositoryAccess
-
Methods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnLocalOperationRunner
getFirstTarget, sleepForTimestamp
-
Methods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner
checkCancelled, getOperation, getWcContext, handleEvent, handleEvent, run, setOperation, setWcContext
-
-
-
-
Method Detail
-
getWcGeneration
public SvnWcGeneration 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
public boolean isApplicable(SvnDiff operation, SvnWcGeneration wcGeneration) throws SVNException
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
protected java.lang.Void run(SVNWCContext context) throws SVNException
- 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
private void doDiffWC(java.io.File localAbspath, ISvnDiffCallback callback) throws SVNException- 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
private SVNURL getURL(java.io.File path1) throws SVNException
- Throws:
SVNException
-
getRevisionNumber
private long getRevisionNumber(SVNRevision revision, SVNRepository repository, SvnTarget target) throws SVNException
- Throws:
SVNException
-
isPeggedDiff
private boolean isPeggedDiff()
-
isRevisionBase
private boolean isRevisionBase(SVNRevision revision2)
-
createDiffCallback
private SvnDiffCallback createDiffCallback(ISvnDiffGenerator generator, boolean reverse, long revisionNumber1, long revisionNumber2)
-
getDiffGenerator
private ISvnDiffGenerator getDiffGenerator()
-
-