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 Stringprivate Map<String,SVNMergeRangeList> calculateTargetMergeInfo(File srcFile, long srcRevision, SVNRepository repository) private SVNCommitInfocopy(Collection<SvnNgWcToReposCopy.SvnCopyPair> copyPairs, boolean makeParents, SVNProperties revisionProperties, String commitMessage, ISvnCommitHandler commitHandler) protected SVNCommitInfodoRun(SVNWCContext context, SVNURL target) private SvnCommitPacketprivate Collection<SVNURL>findMissingParents(SVNURL targetURL, SVNRepository repository) private FilegetUrlKind(SVNURL url, long revision) private voidincludeExternalsChanges(SVNRepository repos, SvnCommitPacket packet, Map<File, 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(File localAbsPath, SVNURL commitUrl, SvnCommitPacket packet, 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, setWcContext
-
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(Collection<SvnNgWcToReposCopy.SvnCopyPair> copyPairs, boolean makeParents, SVNProperties revisionProperties, String commitMessage, ISvnCommitHandler commitHandler) throws SVNException - Throws:
SVNException
-
queuePropChangeCommitItems
private void queuePropChangeCommitItems(File localAbsPath, SVNURL commitUrl, SvnCommitPacket packet, String propName, SVNPropertyValue externalsPropertyValue, SVNURL repositoryRoot) -
buildErrorMessageWithDebugInformation
-
filterLocalModifications
- Throws:
SVNException
-
includeExternalsChanges
private void includeExternalsChanges(SVNRepository repos, SvnCommitPacket packet, Map<File, String> externalsStorage, SvnNgWcToReposCopy.SvnCopyPair svnCopyPair) throws SVNException- Throws:
SVNException
-
findMissingParents
private Collection<SVNURL> findMissingParents(SVNURL targetURL, SVNRepository repository) throws SVNException - Throws:
SVNException
-
getCommonCopyAncestor
-
calculateTargetMergeInfo
private Map<String,SVNMergeRangeList> calculateTargetMergeInfo(File srcFile, long srcRevision, SVNRepository repository) throws SVNException - Throws:
SVNException
-
getUrlKind
- Specified by:
getUrlKindin interfaceSvnNgCommitUtil.ISvnUrlKindCallback- Throws:
SVNException
-