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<java.lang.Void,SvnCopy>
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgReposToWcCopy
- All Implemented Interfaces:
ISVNCanceller,ISVNEventHandler,ISvnOperationRunner<java.lang.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, java.io.File path, java.io.InputStream newBaseContents, java.io.InputStream newContents, SVNProperties newBaseProps, SVNProperties newProps, SVNURL copyFromURL, long copyFromRev) private booleanareAllSourcesRemote(SvnCopy operation) private java.util.Map<java.lang.String,SVNMergeRangeList> calculateTargetMergeInfo(SVNURL srcURL, long srcRevision, SVNRepository repository) private java.lang.Voidcopy(java.util.Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs, boolean makeParents, boolean ignoreExternals) private java.lang.Voidcopy(java.util.Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs, java.io.File topDst, boolean ignoreExternals, SVNRepository repository) private longcopy(SvnNgReposToWcCopy.SvnCopyPair pair, boolean sameRepositories, boolean ignoreExternals, SVNRepository repository) private voidcopyForeign(SVNURL url, java.io.File dstAbsPath, SVNRevision pegRevision, SVNRevision revision, SVNDepth depth, boolean makeParents, boolean alreadyLocked) private voidcopyForeignDir(SVNRepository repository, long locRev, java.io.File dstAbsPath, SVNDepth depth) protected java.util.Collection<SvnCopySource>expandCopySources(java.util.Collection<SvnCopySource> sources) private SVNURLgetCommonCopyAncestor(java.util.Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs) private java.io.FilegetCommonCopyDst(java.util.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 java.lang.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, setWcContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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<java.lang.Void,SvnCopy> - Overrides:
isApplicablein classSvnLocalOperationRunner<java.lang.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<java.lang.Void,SvnCopy> - Throws:
SVNException
-
expandCopySources
protected java.util.Collection<SvnCopySource> expandCopySources(java.util.Collection<SvnCopySource> sources) throws SVNException - Throws:
SVNException
-
copy
private java.lang.Void copy(java.util.Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs, boolean makeParents, boolean ignoreExternals) throws SVNException - Throws:
SVNException
-
copy
private java.lang.Void copy(java.util.Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs, java.io.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, java.io.File dstAbsPath, SVNRevision pegRevision, SVNRevision revision, SVNDepth depth, boolean makeParents, boolean alreadyLocked) throws SVNException - Throws:
SVNException
-
copyForeignDir
private void copyForeignDir(SVNRepository repository, long locRev, java.io.File dstAbsPath, SVNDepth depth) throws SVNException - Throws:
SVNException
-
getCommonCopyAncestor
private SVNURL getCommonCopyAncestor(java.util.Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs) -
getCommonCopyDst
private java.io.File getCommonCopyDst(java.util.Collection<SvnNgReposToWcCopy.SvnCopyPair> copyPairs) -
addFileToWc
public static void addFileToWc(SVNWCContext context, java.io.File path, java.io.InputStream newBaseContents, java.io.InputStream newContents, SVNProperties newBaseProps, SVNProperties newProps, SVNURL copyFromURL, long copyFromRev) throws SVNException - Throws:
SVNException
-
calculateTargetMergeInfo
private java.util.Map<java.lang.String,SVNMergeRangeList> calculateTargetMergeInfo(SVNURL srcURL, long srcRevision, SVNRepository repository) throws SVNException - Throws:
SVNException
-