Class SvnNgWcToReposCopy
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<SVNCommitInfo,SvnRemoteCopy>
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgWcToReposCopy
- All Implemented Interfaces:
SvnNgCommitUtil.ISvnUrlKindCallback,ISVNCanceller,ISVNEventHandler,ISvnOperationRunner<SVNCommitInfo,SvnRemoteCopy>
public class SvnNgWcToReposCopy
extends SvnNgOperationRunner<SVNCommitInfo,SvnRemoteCopy>
implements SvnNgCommitUtil.ISvnUrlKindCallback
-
Nested Class Summary
Nested Classes -
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 TypeMethodDescriptionprivate booleanareAllSourcesLocal(SvnRemoteCopy operation) private java.lang.Stringprivate java.util.Map<java.lang.String,SVNMergeRangeList> calculateTargetMergeInfo(java.io.File srcFile, long srcRevision, SVNRepository repository) private SVNCommitInfocopy(java.util.Collection<SvnNgWcToReposCopy.SvnCopyPair> copyPairs, boolean makeParents, SVNProperties revisionProperties, java.lang.String commitMessage, ISvnCommitHandler commitHandler) protected SVNCommitInfodoRun(SVNWCContext context, SVNURL target) private SvnCommitPacketprivate java.util.Collection<SVNURL>findMissingParents(SVNURL targetURL, SVNRepository repository) private java.io.FilegetCommonCopyAncestor(java.util.Collection<SvnNgWcToReposCopy.SvnCopyPair> copyPairs) getUrlKind(SVNURL url, long revision) private voidincludeExternalsChanges(SVNRepository repos, SvnCommitPacket packet, java.util.Map<java.io.File, java.lang.String> externalsStorage, SvnNgWcToReposCopy.SvnCopyPair svnCopyPair) booleanisApplicable(SvnRemoteCopy operation, SvnWcGeneration wcGeneration) Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)private voidqueuePropChangeCommitItems(java.io.File localAbsPath, SVNURL commitUrl, SvnCommitPacket packet, java.lang.String propName, SVNPropertyValue externalsPropertyValue, SVNURL repositoryRoot) protected SVNCommitInforun(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
-
SvnNgWcToReposCopy
public SvnNgWcToReposCopy()
-
-
Method Details
-
isApplicable
public boolean isApplicable(SvnRemoteCopy 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<SVNCommitInfo,SvnRemoteCopy> - Overrides:
isApplicablein classSvnLocalOperationRunner<SVNCommitInfo,SvnRemoteCopy> - Parameters:
operation- operation that needs runnerwcGeneration- working copy generation- Returns:
trueif the runner is applicable, otherwisefalse- Throws:
SVNException
-
areAllSourcesLocal
-
run
- Specified by:
runin classSvnNgOperationRunner<SVNCommitInfo,SvnRemoteCopy> - Throws:
SVNException
-
doRun
- Throws:
SVNException
-
copy
private SVNCommitInfo copy(java.util.Collection<SvnNgWcToReposCopy.SvnCopyPair> copyPairs, boolean makeParents, SVNProperties revisionProperties, java.lang.String commitMessage, ISvnCommitHandler commitHandler) throws SVNException - Throws:
SVNException
-
queuePropChangeCommitItems
private void queuePropChangeCommitItems(java.io.File localAbsPath, SVNURL commitUrl, SvnCommitPacket packet, java.lang.String propName, SVNPropertyValue externalsPropertyValue, SVNURL repositoryRoot) -
buildErrorMessageWithDebugInformation
-
filterLocalModifications
- Throws:
SVNException
-
includeExternalsChanges
private void includeExternalsChanges(SVNRepository repos, SvnCommitPacket packet, java.util.Map<java.io.File, java.lang.String> externalsStorage, SvnNgWcToReposCopy.SvnCopyPair svnCopyPair) throws SVNException- Throws:
SVNException
-
findMissingParents
private java.util.Collection<SVNURL> findMissingParents(SVNURL targetURL, SVNRepository repository) throws SVNException - Throws:
SVNException
-
getCommonCopyAncestor
private java.io.File getCommonCopyAncestor(java.util.Collection<SvnNgWcToReposCopy.SvnCopyPair> copyPairs) -
calculateTargetMergeInfo
private java.util.Map<java.lang.String,SVNMergeRangeList> calculateTargetMergeInfo(java.io.File srcFile, long srcRevision, SVNRepository repository) throws SVNException - Throws:
SVNException
-
getUrlKind
- Specified by:
getUrlKindin interfaceSvnNgCommitUtil.ISvnUrlKindCallback- Throws:
SVNException
-