Class SvnNgDiffSummarize
- 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<SvnDiffStatus,SvnDiffSummarize>
-
- org.tmatesoft.svn.core.internal.wc2.ng.SvnNgDiffSummarize
-
- All Implemented Interfaces:
ISVNCanceller,ISVNEventHandler,ISvnOperationRunner<SvnDiffStatus,SvnDiffSummarize>
public class SvnNgDiffSummarize extends SvnNgOperationRunner<SvnDiffStatus,SvnDiffSummarize>
-
-
Field Summary
Fields Modifier and Type Field Description private SvnNgRepositoryAccessrepositoryAccess-
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 SvnNgDiffSummarize()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckDiffTargetExists(SVNURL url, long revision, long otherRevision, SVNRepository repository)private static ISVNDiffStatusHandlercreateHandlerForReceiver(ISvnObjectReceiver<SvnDiffStatus> receiver)protected SVNRepositorycreateRepository(SVNURL url, java.io.File path, boolean mayReuse)private voiddoDiff(SvnTarget target1, SVNRevision revision1, SvnTarget target2, SVNRevision revision2, SVNRevision pegRevision, SVNDepth depth, boolean useAncestry, ISVNDiffStatusHandler handler)private voiddoDiffReposRepos(SVNURL url1, java.io.File path1, SVNRevision revision1, SVNURL url2, java.io.File path2, SVNRevision revision2, SVNRevision pegRevision, SVNDepth depth, boolean useAncestry, ISVNDiffStatusHandler handler)private voiddoDiffReposWC(SvnTarget target1, SVNRevision revision1, SvnTarget target2, SVNRevision revision2, SVNRevision pegRevision, boolean reverse, SVNDepth depth, boolean useAncestry, ISVNDiffStatusHandler handler)private voiddoDiffURL(SVNURL url, java.io.File path, SVNRevision startRevision, SVNRevision endRevision, SVNRevision pegRevision, SVNDepth depth, boolean useAncestry, ISVNDiffStatusHandler handler)private voiddoDiffWCWC(SvnTarget target1, SVNRevision revision1, SvnTarget target2, SVNRevision revision2, SVNDepth depth, boolean useAncestry, ISVNDiffStatusHandler handler)private ISVNDebugLoggetDebugLog()protected SvnNgRepositoryAccessgetRepositoryAccess()private longgetRevisionNumber(SVNRevision revision1, SVNRepository repository1, SVNURL url1)private SVNURLgetURL(java.io.File path1)booleanisApplicable(SvnDiffSummarize operation, SvnWcGeneration wcGeneration)Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)private SVNURLresolvePeggedDiffTargetUrl(SVNURL url, java.io.File path, SVNRevision pegRevision, SVNRevision revision)protected SvnDiffStatusrun(SVNWCContext context)-
Methods inherited from class org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner
deleteDeleteFiles, getWcGeneration, 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
-
-
-
-
Field Detail
-
repositoryAccess
private SvnNgRepositoryAccess repositoryAccess
-
-
Method Detail
-
isApplicable
public boolean isApplicable(SvnDiffSummarize 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<SvnDiffStatus,SvnDiffSummarize>- Overrides:
isApplicablein classSvnLocalOperationRunner<SvnDiffStatus,SvnDiffSummarize>- Parameters:
operation- operation that needs runnerwcGeneration- working copy generation- Returns:
trueif the runner is applicable, otherwisefalse- Throws:
SVNException
-
run
protected SvnDiffStatus run(SVNWCContext context) throws SVNException
- Specified by:
runin classSvnNgOperationRunner<SvnDiffStatus,SvnDiffSummarize>- Throws:
SVNException
-
doDiff
private void doDiff(SvnTarget target1, SVNRevision revision1, SvnTarget target2, SVNRevision revision2, SVNRevision pegRevision, SVNDepth depth, boolean useAncestry, ISVNDiffStatusHandler handler) throws SVNException
- Throws:
SVNException
-
doDiffURL
private void doDiffURL(SVNURL url, java.io.File path, SVNRevision startRevision, SVNRevision endRevision, SVNRevision pegRevision, SVNDepth depth, boolean useAncestry, ISVNDiffStatusHandler handler) throws SVNException
- Throws:
SVNException
-
doDiffReposRepos
private void doDiffReposRepos(SVNURL url1, java.io.File path1, SVNRevision revision1, SVNURL url2, java.io.File path2, SVNRevision revision2, SVNRevision pegRevision, SVNDepth depth, boolean useAncestry, ISVNDiffStatusHandler handler) throws SVNException
- Throws:
SVNException
-
doDiffReposWC
private void doDiffReposWC(SvnTarget target1, SVNRevision revision1, SvnTarget target2, SVNRevision revision2, SVNRevision pegRevision, boolean reverse, SVNDepth depth, boolean useAncestry, ISVNDiffStatusHandler handler) throws SVNException
- Throws:
SVNException
-
doDiffWCWC
private void doDiffWCWC(SvnTarget target1, SVNRevision revision1, SvnTarget target2, SVNRevision revision2, SVNDepth depth, boolean useAncestry, ISVNDiffStatusHandler handler) 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
-
getDebugLog
private ISVNDebugLog getDebugLog()
-
getRevisionNumber
private long getRevisionNumber(SVNRevision revision1, SVNRepository repository1, SVNURL url1) throws SVNException
- Throws:
SVNException
-
getURL
private SVNURL getURL(java.io.File path1) throws SVNException
- Throws:
SVNException
-
createRepository
protected SVNRepository createRepository(SVNURL url, java.io.File path, boolean mayReuse) throws SVNException
- Throws:
SVNException
-
createHandlerForReceiver
private static ISVNDiffStatusHandler createHandlerForReceiver(ISvnObjectReceiver<SvnDiffStatus> receiver)
-
getRepositoryAccess
protected SvnNgRepositoryAccess getRepositoryAccess() throws SVNException
- Overrides:
getRepositoryAccessin classSvnNgOperationRunner<SvnDiffStatus,SvnDiffSummarize>- Throws:
SVNException
-
-