Class SVNCopyDriver
java.lang.Object
org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate
org.tmatesoft.svn.core.internal.wc.SVNCopyDriver
- All Implemented Interfaces:
ISVNCanceller,ISVNEventHandler
- Direct Known Subclasses:
SVNCopyClient16,SVNMoveClient16
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static classNested classes/interfaces inherited from class org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate
SVNBasicDelegate.RepositoryReference, SVNBasicDelegate.SVNRepositoryLocation -
Field Summary
FieldsFields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULLFields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSVNCopyDriver(ISVNAuthenticationManager authManager, ISVNOptions options) protectedSVNCopyDriver(ISVNRepositoryPool repositoryPool, ISVNOptions options) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddLocalParents(java.io.File path, ISVNEventHandler handler) private java.util.MapcalculateTargetMergeInfo(java.io.File srcFile, SVNWCAccess access, SVNURL srcURL, long srcRevision, SVNRepository repository, boolean noReposAccess) private voidclose(SVNWCAccess access) private voidcopyAddedDirAdm(java.io.File src, SVNWCAccess srcAccess, java.io.File dstParent, SVNWCAccess dstParentAccess, java.lang.String dstName, boolean isAdded) private voidcopyAddedFileAdm(java.io.File src, SVNWCAccess srcAccess, SVNWCAccess dstAccess, java.io.File dstParent, java.lang.String dstName, boolean isAdded) private voidcopyDirAdm(java.io.File src, SVNWCAccess srcAccess, SVNWCAccess dstAccess, java.io.File dstParent, java.lang.String dstName) private voidcopyDisjointDir(java.io.File nestedWC, SVNWCAccess parentAccess, java.io.File nestedWCParent) protected voidcopyDisjointWCToWC(java.io.File nestedWC) private voidcopyFileAdm(java.io.File src, SVNWCAccess srcAccess, java.io.File dstParent, SVNWCAccess dstAccess, java.lang.String dstName, boolean move) private voidcopyFiles(java.io.File src, java.io.File dstParent, SVNWCAccess dstAccess, java.lang.String dstName, boolean move) private voidcopyProps(java.io.File src, java.io.File dst, SVNWCAccess srcAccess, SVNWCAccess dstAccess) private SVNCommitInfocopyReposToRepos(java.util.List copyPairs, boolean makeParents, boolean isMove, boolean pinExternals, java.util.Map<SvnTarget, java.util.List<SVNExternal>> externalsToPin, java.lang.String message, SVNProperties revprops, ISVNCommitHandler commitHandler) private voidcopyReposToWC(java.util.List copyPairs, boolean makeParents) private voidcopyReposToWC(SVNCopyDriver.CopyPair pair, boolean sameRepositories, SVNRepository topSrcRepos, SVNWCAccess dstAccess) private SVNCommitInfocopyWCToRepos(java.util.List copyPairs, boolean makeParents, java.lang.String message, SVNProperties revprops, ISVNCommitHandler commitHandler, ISVNCommitParameters commitParameters, ISVNExternalsHandler externalsHandler) private voidcopyWCToWC(java.util.List pairs) private voidcopyWCToWC(java.util.List copyPairs, boolean isMove, boolean makeParents) private SVNLocationEntrydetermineCopyFromInfo(java.io.File src, SVNWCAccess srcAccess, SVNEntry srcEntry, SVNEntry dstEntry) protected SVNCopySource[]expandCopySources(SVNCopySource[] sources) private voidextendWCMergeInfo(java.io.File path, SVNEntry entry, java.util.Map mergeInfo, SVNWCAccess access) private SVNLocationEntrygetCopyFromInfoFromParent(java.io.File file, SVNWCAccess access) private java.lang.StringgetUUIDFromPath(SVNWCAccess wcAccess, java.io.File path) private SVNWCAccessprivate voidmoveWCToWC(java.util.List pairs) private SVNAdminAreaopen(SVNWCAccess access, java.io.File path, boolean writeLock, boolean stealLock, int depth) private static voidprivate SVNAdminAreaprobeOpen(SVNWCAccess access, java.io.File path, boolean writeLock, int depth) private voidqueueExternalsChangePathInfos(java.util.List<SVNCopyDriver.CopyPathInfo> newPathInfos, java.util.List<SVNCopyDriver.CopyPathInfo> pathInfos, java.util.Map<java.lang.String, SVNPropertyValue> pinnedExternals, SVNCopyDriver.CopyPathInfo parentInfo) voidsetDisableLocalModificationCopying(boolean disable) protected SVNCommitInfosetupCopy(SVNCopySource[] sources, SVNPath dst, boolean isMove, boolean makeParents, boolean pinExternals, java.util.Map<SvnTarget, java.util.List<SVNExternal>> externalsToPin, java.lang.String message, SVNProperties revprops, ISVNCommitHandler commitHandler, ISVNCommitParameters commitParameters, ISVNExternalsHandler externalsHandler) protected voidsetWCAccess(SVNWCAccess access) Methods inherited from class org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate
checkCancelled, createRepository, createRepository, createRepository, createWCAccess, createWCAccess, deriveLocation, dispatchEvent, dispatchEvent, elideMergeInfo, ensureSessionURL, getDebugLog, getEntryLocation, getEventDispatcher, getLevelsToLockFromDepth, getLocations, getOptions, getPathLastChangeRevision, getPathRelativeToRoot, getPathRelativeToSession, getRepositoryPool, getReposMergeInfo, getReposRoot, getRevisionNumber, getRevisionNumber, getURL, getWCMergeInfo, getWCOrRepositoryMergeInfo, handleEvent, handlePathListItem, isIgnoreExternals, isLeaveConflictsUnresolved, resolveRevisions, setCommitItemAccess, setCommitItemFlags, setCommitItemProperty, setDebugLog, setEventHandler, setEventPathPrefix, setIgnoreExternals, setLeaveConflictsUnresolved, setOptions, setPathListHandler, sleepForTimeStampMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
myWCAccess
-
myIsDisableLocalModificationsCopying
private boolean myIsDisableLocalModificationsCopying
-
-
Constructor Details
-
SVNCopyDriver
-
SVNCopyDriver
-
-
Method Details
-
setDisableLocalModificationCopying
public void setDisableLocalModificationCopying(boolean disable) -
setWCAccess
-
getWCAccess
-
probeOpen
private SVNAdminArea probeOpen(SVNWCAccess access, java.io.File path, boolean writeLock, int depth) throws SVNException - Throws:
SVNException
-
open
private SVNAdminArea open(SVNWCAccess access, java.io.File path, boolean writeLock, boolean stealLock, int depth) throws SVNException - Throws:
SVNException
-
close
- Throws:
SVNException
-
expandCopySources
- Throws:
SVNException
-
copyReposToRepos
private SVNCommitInfo copyReposToRepos(java.util.List copyPairs, boolean makeParents, boolean isMove, boolean pinExternals, java.util.Map<SvnTarget, java.util.List<SVNExternal>> externalsToPin, java.lang.String message, SVNProperties revprops, ISVNCommitHandler commitHandler) throws SVNException- Throws:
SVNException
-
queueExternalsChangePathInfos
private void queueExternalsChangePathInfos(java.util.List<SVNCopyDriver.CopyPathInfo> newPathInfos, java.util.List<SVNCopyDriver.CopyPathInfo> pathInfos, java.util.Map<java.lang.String, SVNPropertyValue> pinnedExternals, SVNCopyDriver.CopyPathInfo parentInfo) throws SVNException- Throws:
SVNException
-
getUUIDFromPath
private java.lang.String getUUIDFromPath(SVNWCAccess wcAccess, java.io.File path) throws SVNException - Throws:
SVNException
-
postCopyCleanup
- Throws:
SVNException
-
setupCopy
protected SVNCommitInfo setupCopy(SVNCopySource[] sources, SVNPath dst, boolean isMove, boolean makeParents, boolean pinExternals, java.util.Map<SvnTarget, java.util.List<SVNExternal>> externalsToPin, java.lang.String message, SVNProperties revprops, ISVNCommitHandler commitHandler, ISVNCommitParameters commitParameters, ISVNExternalsHandler externalsHandler) throws SVNException- Throws:
SVNException
-
copyWCToRepos
private SVNCommitInfo copyWCToRepos(java.util.List copyPairs, boolean makeParents, java.lang.String message, SVNProperties revprops, ISVNCommitHandler commitHandler, ISVNCommitParameters commitParameters, ISVNExternalsHandler externalsHandler) throws SVNException - Throws:
SVNException
-
copyReposToWC
- Throws:
SVNException
-
copyReposToWC
private void copyReposToWC(SVNCopyDriver.CopyPair pair, boolean sameRepositories, SVNRepository topSrcRepos, SVNWCAccess dstAccess) throws SVNException - Throws:
SVNException
-
copyWCToWC
private void copyWCToWC(java.util.List copyPairs, boolean isMove, boolean makeParents) throws SVNException - Throws:
SVNException
-
copyDisjointWCToWC
- Throws:
SVNException
-
copyDisjointDir
private void copyDisjointDir(java.io.File nestedWC, SVNWCAccess parentAccess, java.io.File nestedWCParent) throws SVNException - Throws:
SVNException
-
copyWCToWC
- Throws:
SVNException
-
moveWCToWC
- Throws:
SVNException
-
copyFiles
private void copyFiles(java.io.File src, java.io.File dstParent, SVNWCAccess dstAccess, java.lang.String dstName, boolean move) throws SVNException - Throws:
SVNException
-
copyFileAdm
private void copyFileAdm(java.io.File src, SVNWCAccess srcAccess, java.io.File dstParent, SVNWCAccess dstAccess, java.lang.String dstName, boolean move) throws SVNException - Throws:
SVNException
-
copyAddedFileAdm
private void copyAddedFileAdm(java.io.File src, SVNWCAccess srcAccess, SVNWCAccess dstAccess, java.io.File dstParent, java.lang.String dstName, boolean isAdded) throws SVNException - Throws:
SVNException
-
copyDirAdm
private void copyDirAdm(java.io.File src, SVNWCAccess srcAccess, SVNWCAccess dstAccess, java.io.File dstParent, java.lang.String dstName) throws SVNException - Throws:
SVNException
-
copyAddedDirAdm
private void copyAddedDirAdm(java.io.File src, SVNWCAccess srcAccess, java.io.File dstParent, SVNWCAccess dstParentAccess, java.lang.String dstName, boolean isAdded) throws SVNException - Throws:
SVNException
-
copyProps
private void copyProps(java.io.File src, java.io.File dst, SVNWCAccess srcAccess, SVNWCAccess dstAccess) throws SVNException - Throws:
SVNException
-
determineCopyFromInfo
private SVNLocationEntry determineCopyFromInfo(java.io.File src, SVNWCAccess srcAccess, SVNEntry srcEntry, SVNEntry dstEntry) throws SVNException - Throws:
SVNException
-
getCopyFromInfoFromParent
private SVNLocationEntry getCopyFromInfoFromParent(java.io.File file, SVNWCAccess access) throws SVNException - Throws:
SVNException
-
addLocalParents
- Throws:
SVNException
-
extendWCMergeInfo
private void extendWCMergeInfo(java.io.File path, SVNEntry entry, java.util.Map mergeInfo, SVNWCAccess access) throws SVNException - Throws:
SVNException
-
calculateTargetMergeInfo
private java.util.Map calculateTargetMergeInfo(java.io.File srcFile, SVNWCAccess access, SVNURL srcURL, long srcRevision, SVNRepository repository, boolean noReposAccess) throws SVNException - Throws:
SVNException
-