Package org.tmatesoft.svn.core.wc2
Class SvnRelocate
- All Implemented Interfaces:
ISvnOperationOptionsProvider
Represents relocate operation.
Substitutes the beginning part of a working copy
target
's URL with a new one.
When a repository root location or a URL schema is changed the fromUrl
of
the working copy which starts with fromUrl
should be
substituted for a new URL beginning - toUrl
, or full target
's URL
should be substituted with toUrl
.
- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the old beginning part of thetarget
's repository URL that should be overwritten.getToUrl()
Gets the new beginning part for the repository location or full repository location that will overwritetarget
's repository URL.protected void
boolean
Gets whether the operation changes working copyboolean
Returns whether to ignore externals definitions.boolean
Returns whether to relocate entire tree oftarget
if it is a directory.void
setFromUrl
(SVNURL fromUrl) Sets the old beginning part of thetarget
's repository URL that should be overwritten.void
setIgnoreExternals
(boolean ignoreExternals) Sets whether to ignore externals definitions.void
setRecursive
(boolean recursive) Sets whether to relocate entire tree oftoUrl
if it is a directory.void
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
-
Field Details
-
fromUrl
-
toUrl
-
ignoreExternals
private boolean ignoreExternals -
recursive
private boolean recursive
-
-
Constructor Details
-
SvnRelocate
-
-
Method Details
-
getFromUrl
Returns the old beginning part of thetarget
's repository URL that should be overwritten. Optional parameter, ifnull
fulltarget
's repository URL should be overwritten.- Returns:
- old beginning part of the repository URL of the
target
-
setFromUrl
Sets the old beginning part of thetarget
's repository URL that should be overwritten. Optional parameter, ifnull
fulltarget
's repository URL should be overwritten.- Parameters:
fromUrl
- old beginning part of the repository URL of thetarget
-
getToUrl
Gets the new beginning part for the repository location or full repository location that will overwritetarget
's repository URL. IffromUrl
isnull
full URL should be overwritten, otherwise only beginning part should be overwritten.- Returns:
- new repository path or part of repository path of the
target
-
setToUrl
Sets the new beginning part for the repository location or full repository location that will overwritetarget
's repository URL. IffromUrl
isnull
full 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:
true
if externals definitions should be ignored, otherwisefalse
-
setIgnoreExternals
public void setIgnoreExternals(boolean ignoreExternals) Sets whether to ignore externals definitions.- Parameters:
ignoreExternals
-true
if externals definitions should be ignored, otherwisefalse
-
setRecursive
public void setRecursive(boolean recursive) Sets whether to relocate entire tree oftoUrl
if it is a directory. Only relevant for 1.6 working copies.- Parameters:
recursive
-true
if the entire tree oftoUrl
directory should be relocated, otherwisefalse
-
isRecursive
public boolean isRecursive()Returns whether to relocate entire tree oftarget
if it is a directory. Only relevant for 1.6 working copies.- Returns:
true
if the entire tree oftarget
directory should be relocated, otherwisefalse
-
initDefaults
protected void initDefaults()- Overrides:
initDefaults
in classSvnOperation<SVNURL>
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopy
in classSvnOperation<SVNURL>
- Returns:
true
if the operation changes the working copy, otherwisefalse
-