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 class
private static class
private static class
Nested 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
NULL
Fields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SVNCopyDriver
(ISVNAuthenticationManager authManager, ISVNOptions options) protected
SVNCopyDriver
(ISVNRepositoryPool repositoryPool, ISVNOptions options) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addLocalParents
(File path, ISVNEventHandler handler) private Map
calculateTargetMergeInfo
(File srcFile, SVNWCAccess access, SVNURL srcURL, long srcRevision, SVNRepository repository, boolean noReposAccess) private void
close
(SVNWCAccess access) private void
copyAddedDirAdm
(File src, SVNWCAccess srcAccess, File dstParent, SVNWCAccess dstParentAccess, String dstName, boolean isAdded) private void
copyAddedFileAdm
(File src, SVNWCAccess srcAccess, SVNWCAccess dstAccess, File dstParent, String dstName, boolean isAdded) private void
copyDirAdm
(File src, SVNWCAccess srcAccess, SVNWCAccess dstAccess, File dstParent, String dstName) private void
copyDisjointDir
(File nestedWC, SVNWCAccess parentAccess, File nestedWCParent) protected void
copyDisjointWCToWC
(File nestedWC) private void
copyFileAdm
(File src, SVNWCAccess srcAccess, File dstParent, SVNWCAccess dstAccess, String dstName, boolean move) private void
copyFiles
(File src, File dstParent, SVNWCAccess dstAccess, String dstName, boolean move) private void
copyProps
(File src, File dst, SVNWCAccess srcAccess, SVNWCAccess dstAccess) private SVNCommitInfo
copyReposToRepos
(List copyPairs, boolean makeParents, boolean isMove, boolean pinExternals, Map<SvnTarget, List<SVNExternal>> externalsToPin, String message, SVNProperties revprops, ISVNCommitHandler commitHandler) private void
copyReposToWC
(List copyPairs, boolean makeParents) private void
copyReposToWC
(SVNCopyDriver.CopyPair pair, boolean sameRepositories, SVNRepository topSrcRepos, SVNWCAccess dstAccess) private SVNCommitInfo
copyWCToRepos
(List copyPairs, boolean makeParents, String message, SVNProperties revprops, ISVNCommitHandler commitHandler, ISVNCommitParameters commitParameters, ISVNExternalsHandler externalsHandler) private void
copyWCToWC
(List pairs) private void
copyWCToWC
(List copyPairs, boolean isMove, boolean makeParents) private SVNLocationEntry
determineCopyFromInfo
(File src, SVNWCAccess srcAccess, SVNEntry srcEntry, SVNEntry dstEntry) protected SVNCopySource[]
expandCopySources
(SVNCopySource[] sources) private void
extendWCMergeInfo
(File path, SVNEntry entry, Map mergeInfo, SVNWCAccess access) private SVNLocationEntry
getCopyFromInfoFromParent
(File file, SVNWCAccess access) private String
getUUIDFromPath
(SVNWCAccess wcAccess, File path) private SVNWCAccess
private void
moveWCToWC
(List pairs) private SVNAdminArea
open
(SVNWCAccess access, File path, boolean writeLock, boolean stealLock, int depth) private static void
private SVNAdminArea
probeOpen
(SVNWCAccess access, File path, boolean writeLock, int depth) private void
queueExternalsChangePathInfos
(List<SVNCopyDriver.CopyPathInfo> newPathInfos, List<SVNCopyDriver.CopyPathInfo> pathInfos, Map<String, SVNPropertyValue> pinnedExternals, SVNCopyDriver.CopyPathInfo parentInfo) void
setDisableLocalModificationCopying
(boolean disable) protected SVNCommitInfo
setupCopy
(SVNCopySource[] sources, SVNPath dst, boolean isMove, boolean makeParents, boolean pinExternals, Map<SvnTarget, List<SVNExternal>> externalsToPin, String message, SVNProperties revprops, ISVNCommitHandler commitHandler, ISVNCommitParameters commitParameters, ISVNExternalsHandler externalsHandler) protected void
setWCAccess
(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, sleepForTimeStamp
-
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, File path, boolean writeLock, int depth) throws SVNException - Throws:
SVNException
-
open
private SVNAdminArea open(SVNWCAccess access, File path, boolean writeLock, boolean stealLock, int depth) throws SVNException - Throws:
SVNException
-
close
- Throws:
SVNException
-
expandCopySources
- Throws:
SVNException
-
copyReposToRepos
private SVNCommitInfo copyReposToRepos(List copyPairs, boolean makeParents, boolean isMove, boolean pinExternals, Map<SvnTarget, List<SVNExternal>> externalsToPin, String message, SVNProperties revprops, ISVNCommitHandler commitHandler) throws SVNException- Throws:
SVNException
-
queueExternalsChangePathInfos
private void queueExternalsChangePathInfos(List<SVNCopyDriver.CopyPathInfo> newPathInfos, List<SVNCopyDriver.CopyPathInfo> pathInfos, Map<String, SVNPropertyValue> pinnedExternals, SVNCopyDriver.CopyPathInfo parentInfo) throws SVNException- Throws:
SVNException
-
getUUIDFromPath
- Throws:
SVNException
-
postCopyCleanup
- Throws:
SVNException
-
setupCopy
protected SVNCommitInfo setupCopy(SVNCopySource[] sources, SVNPath dst, boolean isMove, boolean makeParents, boolean pinExternals, Map<SvnTarget, List<SVNExternal>> externalsToPin, String message, SVNProperties revprops, ISVNCommitHandler commitHandler, ISVNCommitParameters commitParameters, ISVNExternalsHandler externalsHandler) throws SVNException- Throws:
SVNException
-
copyWCToRepos
private SVNCommitInfo copyWCToRepos(List copyPairs, boolean makeParents, 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
- Throws:
SVNException
-
copyDisjointWCToWC
- Throws:
SVNException
-
copyDisjointDir
private void copyDisjointDir(File nestedWC, SVNWCAccess parentAccess, File nestedWCParent) throws SVNException - Throws:
SVNException
-
copyWCToWC
- Throws:
SVNException
-
moveWCToWC
- Throws:
SVNException
-
copyFiles
private void copyFiles(File src, File dstParent, SVNWCAccess dstAccess, String dstName, boolean move) throws SVNException - Throws:
SVNException
-
copyFileAdm
private void copyFileAdm(File src, SVNWCAccess srcAccess, File dstParent, SVNWCAccess dstAccess, String dstName, boolean move) throws SVNException - Throws:
SVNException
-
copyAddedFileAdm
private void copyAddedFileAdm(File src, SVNWCAccess srcAccess, SVNWCAccess dstAccess, File dstParent, String dstName, boolean isAdded) throws SVNException - Throws:
SVNException
-
copyDirAdm
private void copyDirAdm(File src, SVNWCAccess srcAccess, SVNWCAccess dstAccess, File dstParent, String dstName) throws SVNException - Throws:
SVNException
-
copyAddedDirAdm
private void copyAddedDirAdm(File src, SVNWCAccess srcAccess, File dstParent, SVNWCAccess dstParentAccess, String dstName, boolean isAdded) throws SVNException - Throws:
SVNException
-
copyProps
private void copyProps(File src, File dst, SVNWCAccess srcAccess, SVNWCAccess dstAccess) throws SVNException - Throws:
SVNException
-
determineCopyFromInfo
private SVNLocationEntry determineCopyFromInfo(File src, SVNWCAccess srcAccess, SVNEntry srcEntry, SVNEntry dstEntry) throws SVNException - Throws:
SVNException
-
getCopyFromInfoFromParent
private SVNLocationEntry getCopyFromInfoFromParent(File file, SVNWCAccess access) throws SVNException - Throws:
SVNException
-
addLocalParents
- Throws:
SVNException
-
extendWCMergeInfo
private void extendWCMergeInfo(File path, SVNEntry entry, Map mergeInfo, SVNWCAccess access) throws SVNException - Throws:
SVNException
-
calculateTargetMergeInfo
private Map calculateTargetMergeInfo(File srcFile, SVNWCAccess access, SVNURL srcURL, long srcRevision, SVNRepository repository, boolean noReposAccess) throws SVNException - Throws:
SVNException
-