Package org.tmatesoft.svn.core.wc2
Class SvnRelocate
- java.lang.Object
-
- org.tmatesoft.svn.core.wc2.SvnOperation<SVNURL>
-
- org.tmatesoft.svn.core.wc2.SvnRelocate
-
- All Implemented Interfaces:
ISvnOperationOptionsProvider
public class SvnRelocate extends SvnOperation<SVNURL>
Represents relocate operation. Substitutes the beginning part of a working copytarget's URL with a new one.When a repository root location or a URL schema is changed the
fromUrlof the working copy which starts withfromUrlshould be substituted for a new URL beginning -toUrl, or fulltarget's URL should be substituted withtoUrl.- Version:
- 1.7
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSvnRelocate(SvnOperationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SVNURLgetFromUrl()Returns the old beginning part of thetarget's repository URL that should be overwritten.SVNURLgetToUrl()Gets the new beginning part for the repository location or full repository location that will overwritetarget's repository URL.protected voidinitDefaults()booleanisChangesWorkingCopy()Gets whether the operation changes working copybooleanisIgnoreExternals()Returns whether to ignore externals definitions.booleanisRecursive()Returns whether to relocate entire tree oftargetif it is a directory.voidsetFromUrl(SVNURL fromUrl)Sets the old beginning part of thetarget's repository URL that should be overwritten.voidsetIgnoreExternals(boolean ignoreExternals)Sets whether to ignore externals definitions.voidsetRecursive(boolean recursive)Sets whether to relocate entire tree oftoUrlif it is a directory.voidsetToUrl(SVNURL toUrl)Sets the new beginning part for the repository location or full repository location that will overwritetarget's repository URL.-
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnOperation
addTarget, cancel, ensureArgumentsAreValid, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMaximumTargetsCount, getMinimumTargetsCount, getOperationalWorkingCopy, getOperationFactory, getOptions, getRepositoryPool, getRevision, getSqliteJournalMode, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalMode
-
-
-
-
Constructor Detail
-
SvnRelocate
protected SvnRelocate(SvnOperationFactory factory)
-
-
Method Detail
-
getFromUrl
public SVNURL getFromUrl()
Returns the old beginning part of thetarget's repository URL that should be overwritten. Optional parameter, ifnullfulltarget's repository URL should be overwritten.- Returns:
- old beginning part of the repository URL of the
target
-
setFromUrl
public void setFromUrl(SVNURL fromUrl)
Sets the old beginning part of thetarget's repository URL that should be overwritten. Optional parameter, ifnullfulltarget's repository URL should be overwritten.- Parameters:
fromUrl- old beginning part of the repository URL of thetarget
-
getToUrl
public SVNURL getToUrl()
Gets the new beginning part for the repository location or full repository location that will overwritetarget's repository URL. IffromUrlisnullfull URL should be overwritten, otherwise only beginning part should be overwritten.- Returns:
- new repository path or part of repository path of the
target
-
setToUrl
public void setToUrl(SVNURL toUrl)
Sets the new beginning part for the repository location or full repository location that will overwritetarget's repository URL. IffromUrlisnullfull URL should be overwritten, otherwise only beginning part should be overwritten.- Parameters:
toUrl- new repository path or part of repository path of thetarget
-
isIgnoreExternals
public boolean isIgnoreExternals()
Returns whether to ignore externals definitions.- Returns:
trueif externals definitions should be ignored, otherwisefalse
-
setIgnoreExternals
public void setIgnoreExternals(boolean ignoreExternals)
Sets whether to ignore externals definitions.- Parameters:
ignoreExternals-trueif externals definitions should be ignored, otherwisefalse
-
setRecursive
public void setRecursive(boolean recursive)
Sets whether to relocate entire tree oftoUrlif it is a directory. Only relevant for 1.6 working copies.- Parameters:
recursive-trueif the entire tree oftoUrldirectory should be relocated, otherwisefalse
-
isRecursive
public boolean isRecursive()
Returns whether to relocate entire tree oftargetif it is a directory. Only relevant for 1.6 working copies.- Returns:
trueif the entire tree oftargetdirectory should be relocated, otherwisefalse
-
initDefaults
protected void initDefaults()
- Overrides:
initDefaultsin classSvnOperation<SVNURL>
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopyin classSvnOperation<SVNURL>- Returns:
trueif the operation changes the working copy, otherwisefalse
-
-