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 class
SvnNgWcToReposCopy.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 boolean
areAllSourcesLocal(SvnRemoteCopy operation)
private java.lang.String
buildErrorMessageWithDebugInformation(SvnCommitPacket oldPacket)
private java.util.Map<java.lang.String,SVNMergeRangeList>
calculateTargetMergeInfo(java.io.File srcFile, long srcRevision, SVNRepository repository)
private SVNCommitInfo
copy(java.util.Collection<SvnNgWcToReposCopy.SvnCopyPair> copyPairs, boolean makeParents, SVNProperties revisionProperties, java.lang.String commitMessage, ISvnCommitHandler commitHandler)
protected SVNCommitInfo
doRun(SVNWCContext context, SVNURL target)
private SvnCommitPacket
filterLocalModifications(SvnCommitPacket packet)
private java.util.Collection<SVNURL>
findMissingParents(SVNURL targetURL, SVNRepository repository)
private java.io.File
getCommonCopyAncestor(java.util.Collection<SvnNgWcToReposCopy.SvnCopyPair> copyPairs)
SVNNodeKind
getUrlKind(SVNURL url, long revision)
private void
includeExternalsChanges(SVNRepository repos, SvnCommitPacket packet, java.util.Map<java.io.File,java.lang.String> externalsStorage, SvnNgWcToReposCopy.SvnCopyPair svnCopyPair)
boolean
isApplicable(SvnRemoteCopy operation, SvnWcGeneration wcGeneration)
Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)private void
queuePropChangeCommitItems(java.io.File localAbsPath, SVNURL commitUrl, SvnCommitPacket packet, java.lang.String propName, SVNPropertyValue externalsPropertyValue, SVNURL repositoryRoot)
protected SVNCommitInfo
run(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:ISvnOperationRunner
Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)- Specified by:
isApplicable
in interfaceISvnOperationRunner<SVNCommitInfo,SvnRemoteCopy>
- Overrides:
isApplicable
in classSvnLocalOperationRunner<SVNCommitInfo,SvnRemoteCopy>
- Parameters:
operation
- operation that needs runnerwcGeneration
- working copy generation- Returns:
true
if the runner is applicable, otherwisefalse
- Throws:
SVNException
-
areAllSourcesLocal
private boolean areAllSourcesLocal(SvnRemoteCopy operation)
-
run
protected SVNCommitInfo run(SVNWCContext context) throws SVNException
- Specified by:
run
in 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:
getUrlKind
in interfaceSvnNgCommitUtil.ISvnUrlKindCallback
- Throws:
SVNException
-
-