Class SvnNgReposToWcCopy
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,SvnCopy>
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgReposToWcCopy
- All Implemented Interfaces:
ISVNCanceller
,ISVNEventHandler
,ISvnOperationRunner<Void,
SvnCopy>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
private static class
-
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 TypeMethodDescriptionstatic void
addFileToWc
(SVNWCContext context, File path, InputStream newBaseContents, InputStream newContents, SVNProperties newBaseProps, SVNProperties newProps, SVNURL copyFromURL, long copyFromRev) private boolean
areAllSourcesRemote
(SvnCopy operation) private Map<String,
SVNMergeRangeList> calculateTargetMergeInfo
(SVNURL srcURL, long srcRevision, SVNRepository repository) private Void
copy
(Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs, boolean makeParents, boolean ignoreExternals) private Void
copy
(Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs, File topDst, boolean ignoreExternals, SVNRepository repository) private long
copy
(SvnNgReposToWcCopy.SvnCopyPair pair, boolean sameRepositories, boolean ignoreExternals, SVNRepository repository) private void
copyForeign
(SVNURL url, File dstAbsPath, SVNRevision pegRevision, SVNRevision revision, SVNDepth depth, boolean makeParents, boolean alreadyLocked) private void
copyForeignDir
(SVNRepository repository, long locRev, File dstAbsPath, SVNDepth depth) protected Collection<SvnCopySource>
expandCopySources
(Collection<SvnCopySource> sources) private SVNURL
private File
getCommonCopyDst
(Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs) boolean
isApplicable
(SvnCopy operation, SvnWcGeneration wcGeneration) Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)private boolean
isLocalRevision
(SVNRevision revision) protected Void
run
(SVNWCContext context) Methods inherited from class org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner
deleteDeleteFiles, getRepositoryAccess, 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
-
Constructor Details
-
SvnNgReposToWcCopy
public SvnNgReposToWcCopy()
-
-
Method Details
-
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,
SvnCopy> - Overrides:
isApplicable
in classSvnLocalOperationRunner<Void,
SvnCopy> - Parameters:
operation
- operation that needs runnerwcGeneration
- working copy generation- Returns:
true
if the runner is applicable, otherwisefalse
- Throws:
SVNException
-
areAllSourcesRemote
-
isLocalRevision
-
run
- Specified by:
run
in classSvnNgOperationRunner<Void,
SvnCopy> - Throws:
SVNException
-
expandCopySources
protected Collection<SvnCopySource> expandCopySources(Collection<SvnCopySource> sources) throws SVNException - Throws:
SVNException
-
copy
private Void copy(Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs, boolean makeParents, boolean ignoreExternals) throws SVNException - Throws:
SVNException
-
copy
private Void copy(Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs, File topDst, boolean ignoreExternals, SVNRepository repository) throws SVNException - Throws:
SVNException
-
copy
private long copy(SvnNgReposToWcCopy.SvnCopyPair pair, boolean sameRepositories, boolean ignoreExternals, SVNRepository repository) throws SVNException - Throws:
SVNException
-
copyForeign
private void copyForeign(SVNURL url, File dstAbsPath, SVNRevision pegRevision, SVNRevision revision, SVNDepth depth, boolean makeParents, boolean alreadyLocked) throws SVNException - Throws:
SVNException
-
copyForeignDir
private void copyForeignDir(SVNRepository repository, long locRev, File dstAbsPath, SVNDepth depth) throws SVNException - Throws:
SVNException
-
getCommonCopyAncestor
-
getCommonCopyDst
-
addFileToWc
public static void addFileToWc(SVNWCContext context, File path, InputStream newBaseContents, InputStream newContents, SVNProperties newBaseProps, SVNProperties newProps, SVNURL copyFromURL, long copyFromRev) throws SVNException - Throws:
SVNException
-
calculateTargetMergeInfo
private Map<String,SVNMergeRangeList> calculateTargetMergeInfo(SVNURL srcURL, long srcRevision, SVNRepository repository) throws SVNException - Throws:
SVNException
-