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 void
checkDiffTargetExists(SVNURL url, long revision, long otherRevision, SVNRepository repository)
private SvnDiffCallback
createDiffCallback(ISvnDiffGenerator generator, boolean reverse, long revisionNumber1, long revisionNumber2)
private void
doDiff(SvnTarget target1, SVNRevision revision1, SVNRevision pegRevision, SvnTarget target2, SVNRevision revision2)
private void
doDiffReposRepos(SvnTarget svnTarget1, SVNRevision revision1, SVNRevision pegRevision, SvnTarget svnTarget2, SVNRevision revision2)
private void
doDiffReposWC(SvnTarget target1, SVNRevision revision1, SVNRevision pegRevision, SvnTarget target2, SVNRevision revision2, boolean reverse)
private void
doDiffWC(java.io.File localAbspath, ISvnDiffCallback callback)
private void
doDiffWCWC(SvnTarget target1, SVNRevision revision1, SvnTarget target2, SVNRevision revision2)
private SVNDepth
getDiffDepth(SVNDepth depth)
private ISvnDiffGenerator
getDiffGenerator()
private long
getRevisionNumber(SVNRevision revision, SVNRepository repository, SvnTarget target)
private SVNURL
getURL(java.io.File path1)
SvnWcGeneration
getWcGeneration()
Returns runner's working copy generation it is able to operate on.boolean
isApplicable(SvnDiff operation, SvnWcGeneration wcGeneration)
Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)private boolean
isPeggedDiff()
private boolean
isRevisionBase(SVNRevision revision2)
private SVNURL
resolvePeggedDiffTargetUrl(SVNURL url, java.io.File path, SVNRevision pegRevision, SVNRevision revision)
protected java.lang.Void
run(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:ISvnOperationRunner
Returns runner's working copy generation it is able to operate on.- Specified by:
getWcGeneration
in interfaceISvnOperationRunner<java.lang.Void,SvnDiff>
- Overrides:
getWcGeneration
in 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:ISvnOperationRunner
Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)- Specified by:
isApplicable
in interfaceISvnOperationRunner<java.lang.Void,SvnDiff>
- Overrides:
isApplicable
in classSvnLocalOperationRunner<java.lang.Void,SvnDiff>
- Parameters:
operation
- operation that needs runnerwcGeneration
- working copy generation- Returns:
true
if the runner is applicable, otherwisefalse
- Throws:
SVNException
-
run
protected java.lang.Void run(SVNWCContext context) throws SVNException
- Specified by:
run
in 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()
-
-