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 classprivate static class -
Field Summary
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULLFields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddFileToWc(SVNWCContext context, File path, InputStream newBaseContents, InputStream newContents, SVNProperties newBaseProps, SVNProperties newProps, SVNURL copyFromURL, long copyFromRev) private booleanareAllSourcesRemote(SvnCopy operation) private Map<String,SVNMergeRangeList> calculateTargetMergeInfo(SVNURL srcURL, long srcRevision, SVNRepository repository) private Voidcopy(Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs, boolean makeParents, boolean ignoreExternals) private Voidcopy(Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs, File topDst, boolean ignoreExternals, SVNRepository repository) private longcopy(SvnNgReposToWcCopy.SvnCopyPair pair, boolean sameRepositories, boolean ignoreExternals, SVNRepository repository) private voidcopyForeign(SVNURL url, File dstAbsPath, SVNRevision pegRevision, SVNRevision revision, SVNDepth depth, boolean makeParents, boolean alreadyLocked) private voidcopyForeignDir(SVNRepository repository, long locRev, File dstAbsPath, SVNDepth depth) protected Collection<SvnCopySource>expandCopySources(Collection<SvnCopySource> sources) private SVNURLprivate FilegetCommonCopyDst(Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs) booleanisApplicable(SvnCopy operation, SvnWcGeneration wcGeneration) Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)private booleanisLocalRevision(SVNRevision revision) protected Voidrun(SVNWCContext context) Methods inherited from class org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner
deleteDeleteFiles, getRepositoryAccess, getWcGeneration, matchesChangelist, reset, run, setRepositoryAccessMethods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnLocalOperationRunner
getFirstTarget, sleepForTimestampMethods 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:ISvnOperationRunnerReturns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)- Specified by:
isApplicablein interfaceISvnOperationRunner<Void,SvnCopy> - Overrides:
isApplicablein classSvnLocalOperationRunner<Void,SvnCopy> - Parameters:
operation- operation that needs runnerwcGeneration- working copy generation- Returns:
trueif the runner is applicable, otherwisefalse- Throws:
SVNException
-
areAllSourcesRemote
-
isLocalRevision
-
run
- Specified by:
runin 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
-