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 SvnNgRepositoryAccess
repositoryAccess
-
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 void
checkDiffTargetExists(SVNURL url, long revision, long otherRevision, SVNRepository repository)
private static ISVNDiffStatusHandler
createHandlerForReceiver(ISvnObjectReceiver<SvnDiffStatus> receiver)
protected SVNRepository
createRepository(SVNURL url, java.io.File path, boolean mayReuse)
private void
doDiff(SvnTarget target1, SVNRevision revision1, SvnTarget target2, SVNRevision revision2, SVNRevision pegRevision, SVNDepth depth, boolean useAncestry, ISVNDiffStatusHandler handler)
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)
private void
doDiffReposWC(SvnTarget target1, SVNRevision revision1, SvnTarget target2, SVNRevision revision2, SVNRevision pegRevision, boolean reverse, SVNDepth depth, boolean useAncestry, ISVNDiffStatusHandler handler)
private void
doDiffURL(SVNURL url, java.io.File path, SVNRevision startRevision, SVNRevision endRevision, SVNRevision pegRevision, SVNDepth depth, boolean useAncestry, ISVNDiffStatusHandler handler)
private void
doDiffWCWC(SvnTarget target1, SVNRevision revision1, SvnTarget target2, SVNRevision revision2, SVNDepth depth, boolean useAncestry, ISVNDiffStatusHandler handler)
private ISVNDebugLog
getDebugLog()
protected SvnNgRepositoryAccess
getRepositoryAccess()
private long
getRevisionNumber(SVNRevision revision1, SVNRepository repository1, SVNURL url1)
private SVNURL
getURL(java.io.File path1)
boolean
isApplicable(SvnDiffSummarize operation, SvnWcGeneration wcGeneration)
Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)private SVNURL
resolvePeggedDiffTargetUrl(SVNURL url, java.io.File path, SVNRevision pegRevision, SVNRevision revision)
protected SvnDiffStatus
run(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: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<SvnDiffStatus,SvnDiffSummarize>
- Overrides:
isApplicable
in classSvnLocalOperationRunner<SvnDiffStatus,SvnDiffSummarize>
- Parameters:
operation
- operation that needs runnerwcGeneration
- working copy generation- Returns:
true
if the runner is applicable, otherwisefalse
- Throws:
SVNException
-
run
protected SvnDiffStatus run(SVNWCContext context) throws SVNException
- Specified by:
run
in 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:
getRepositoryAccess
in classSvnNgOperationRunner<SvnDiffStatus,SvnDiffSummarize>
- Throws:
SVNException
-
-