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<Void,SvnDiff>
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgDiff
- All Implemented Interfaces:
ISVNCanceller
,ISVNEventHandler
,ISvnOperationRunner<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 -
Method Summary
Modifier and TypeMethodDescriptionprivate 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
(File localAbspath, ISvnDiffCallback callback) private void
doDiffWCWC
(SvnTarget target1, SVNRevision revision1, SvnTarget target2, SVNRevision revision2) private SVNDepth
getDiffDepth
(SVNDepth depth) private ISvnDiffGenerator
private long
getRevisionNumber
(SVNRevision revision, SVNRepository repository, SvnTarget target) private SVNURL
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
private boolean
isRevisionBase
(SVNRevision revision2) private SVNURL
resolvePeggedDiffTargetUrl
(SVNURL url, File path, SVNRevision pegRevision, SVNRevision revision) protected 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
-
Constructor Details
-
SvnNgDiff
public SvnNgDiff()
-
-
Method Details
-
getWcGeneration
Description copied from interface:ISvnOperationRunner
Returns runner's working copy generation it is able to operate on.- Specified by:
getWcGeneration
in interfaceISvnOperationRunner<Void,
SvnDiff> - Overrides:
getWcGeneration
in classSvnNgOperationRunner<Void,
SvnDiff> - Returns:
- working copy generation of the runner.
-
isApplicable
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<Void,
SvnDiff> - Overrides:
isApplicable
in classSvnLocalOperationRunner<Void,
SvnDiff> - Parameters:
operation
- operation that needs runnerwcGeneration
- working copy generation- Returns:
true
if the runner is applicable, otherwisefalse
- Throws:
SVNException
-
run
- Specified by:
run
in classSvnNgOperationRunner<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, 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
-