Package org.tmatesoft.svn.core.wc2
Class SvnUpgrade
- All Implemented Interfaces:
ISvnOperationOptionsProvider
Represents operation for upgrading the metadata storage format for a working copy.
Target
should represent working copy path to be upgraded.
SvnOperation.run()
returns SvnWcGeneration
of resulting working copy.
SvnOperation.run()
throws SVNException
if the following is true:
- exception with
SVNErrorCode.ILLEGAL_TARGET
error code - iftarget
is not a local path - exception with
SVNErrorCode.ENTRY_NOT_FOUND
error code - iftarget
is not a versioned directory - exception with
SVNErrorCode.WC_INVALID_OP_ON_CWD
error code - iftarget
is not a pre-1.7 working copy directory - exception with
SVNErrorCode.WC_INVALID_OP_ON_CWD
error code - iftarget
is not a pre-1.7 working copy root - exception with
SVNErrorCode.WC_UNSUPPORTED_FORMAT
error code - if atarget
doesn't have a repository URL - exception with
SVNErrorCode.WC_CORRUPT
error code - if a working copy is corrupt
- Since:
- 1.7 (SVN 1.7)
- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Gets whether the operation changes working copyvoid
setTargetWorkingCopyFormat
(int targetWorkingCopyFormat) 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, initDefaults, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalMode
-
Field Details
-
targetWorkingCopyFormat
private int targetWorkingCopyFormat
-
-
Constructor Details
-
SvnUpgrade
-
-
Method Details
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopy
in classSvnOperation<SvnWcGeneration>
- Returns:
true
if the operation changes the working copy, otherwisefalse
-
setTargetWorkingCopyFormat
public void setTargetWorkingCopyFormat(int targetWorkingCopyFormat) -
getTargetWorkingCopyFormat
public int getTargetWorkingCopyFormat()
-