public class SvnNgWcToReposCopy extends SvnNgOperationRunner<SVNCommitInfo,SvnRemoteCopy> implements SvnNgCommitUtil.ISvnUrlKindCallback
Modifier and Type | Class and Description |
---|---|
private static class |
SvnNgWcToReposCopy.SvnCopyPair |
UNKNOWN
NULL
Constructor and Description |
---|
SvnNgWcToReposCopy() |
Modifier and Type | Method and 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) |
deleteDeleteFiles, getRepositoryAccess, getWcGeneration, matchesChangelist, reset, run, setRepositoryAccess
getFirstTarget, sleepForTimestamp
checkCancelled, getOperation, getWcContext, handleEvent, handleEvent, run, setOperation, setWcContext
public boolean isApplicable(SvnRemoteCopy operation, SvnWcGeneration wcGeneration) throws SVNException
ISvnOperationRunner
isApplicable
in interface ISvnOperationRunner<SVNCommitInfo,SvnRemoteCopy>
isApplicable
in class SvnLocalOperationRunner<SVNCommitInfo,SvnRemoteCopy>
operation
- operation that needs runnerwcGeneration
- working copy generationtrue
if the runner is applicable, otherwise false
SVNException
private boolean areAllSourcesLocal(SvnRemoteCopy operation)
protected SVNCommitInfo run(SVNWCContext context) throws SVNException
run
in class SvnNgOperationRunner<SVNCommitInfo,SvnRemoteCopy>
SVNException
protected SVNCommitInfo doRun(SVNWCContext context, SVNURL target) throws SVNException
SVNException
private SVNCommitInfo copy(java.util.Collection<SvnNgWcToReposCopy.SvnCopyPair> copyPairs, boolean makeParents, SVNProperties revisionProperties, java.lang.String commitMessage, ISvnCommitHandler commitHandler) throws SVNException
SVNException
private void queuePropChangeCommitItems(java.io.File localAbsPath, SVNURL commitUrl, SvnCommitPacket packet, java.lang.String propName, SVNPropertyValue externalsPropertyValue, SVNURL repositoryRoot)
private java.lang.String buildErrorMessageWithDebugInformation(SvnCommitPacket oldPacket)
private SvnCommitPacket filterLocalModifications(SvnCommitPacket packet) throws SVNException
SVNException
private void includeExternalsChanges(SVNRepository repos, SvnCommitPacket packet, java.util.Map<java.io.File,java.lang.String> externalsStorage, SvnNgWcToReposCopy.SvnCopyPair svnCopyPair) throws SVNException
SVNException
private java.util.Collection<SVNURL> findMissingParents(SVNURL targetURL, SVNRepository repository) throws SVNException
SVNException
private java.io.File getCommonCopyAncestor(java.util.Collection<SvnNgWcToReposCopy.SvnCopyPair> copyPairs)
private java.util.Map<java.lang.String,SVNMergeRangeList> calculateTargetMergeInfo(java.io.File srcFile, long srcRevision, SVNRepository repository) throws SVNException
SVNException
public SVNNodeKind getUrlKind(SVNURL url, long revision) throws SVNException
getUrlKind
in interface SvnNgCommitUtil.ISvnUrlKindCallback
SVNException