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 Modifier and Type Class Description private static classSvnNgWcToReposCopy.SvnCopyPair
-
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 Constructor Description SvnNgWcToReposCopy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanareAllSourcesLocal(SvnRemoteCopy operation)private java.lang.StringbuildErrorMessageWithDebugInformation(SvnCommitPacket oldPacket)private 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 SvnCommitPacketfilterLocalModifications(SvnCommitPacket packet)private java.util.Collection<SVNURL>findMissingParents(SVNURL targetURL, SVNRepository repository)private java.io.FilegetCommonCopyAncestor(java.util.Collection<SvnNgWcToReposCopy.SvnCopyPair> copyPairs)SVNNodeKindgetUrlKind(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, 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
-
-
-
-
Method Detail
-
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
private boolean areAllSourcesLocal(SvnRemoteCopy operation)
-
run
protected SVNCommitInfo run(SVNWCContext context) throws SVNException
- Specified by:
runin classSvnNgOperationRunner<SVNCommitInfo,SvnRemoteCopy>- Throws:
SVNException
-
doRun
protected SVNCommitInfo doRun(SVNWCContext context, SVNURL target) throws SVNException
- 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
private java.lang.String buildErrorMessageWithDebugInformation(SvnCommitPacket oldPacket)
-
filterLocalModifications
private SvnCommitPacket filterLocalModifications(SvnCommitPacket packet) throws SVNException
- 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
public SVNNodeKind getUrlKind(SVNURL url, long revision) throws SVNException
- Specified by:
getUrlKindin interfaceSvnNgCommitUtil.ISvnUrlKindCallback- Throws:
SVNException
-
-