Package org.tmatesoft.svn.core.wc2
Class SvnUpgrade
- java.lang.Object
-
- org.tmatesoft.svn.core.wc2.SvnOperation<org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration>
-
- org.tmatesoft.svn.core.wc2.SvnUpgrade
-
- All Implemented Interfaces:
ISvnOperationOptionsProvider
public class SvnUpgrade extends SvnOperation<org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration>
Represents operation for upgrading the metadata storage format for a working copy.Targetshould represent working copy path to be upgraded.SvnOperation.run()returnsSvnWcGenerationof resulting working copy.SvnOperation.run()throwsSVNExceptionif the following is true:- exception with
SVNErrorCode.ILLEGAL_TARGETerror code - iftargetis not a local path - exception with
SVNErrorCode.ENTRY_NOT_FOUNDerror code - iftargetis not a versioned directory - exception with
SVNErrorCode.WC_INVALID_OP_ON_CWDerror code - iftargetis not a pre-1.7 working copy directory - exception with
SVNErrorCode.WC_INVALID_OP_ON_CWDerror code - iftargetis not a pre-1.7 working copy root - exception with
SVNErrorCode.WC_UNSUPPORTED_FORMATerror code - if atargetdoesn't have a repository URL - exception with
SVNErrorCode.WC_CORRUPTerror code - if a working copy is corrupt
- Since:
- 1.7 (SVN 1.7)
- Version:
- 1.7
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSvnUpgrade(SvnOperationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetTargetWorkingCopyFormat()booleanisChangesWorkingCopy()Gets whether the operation changes working copyvoidsetTargetWorkingCopyFormat(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
-
-
-
-
Constructor Detail
-
SvnUpgrade
protected SvnUpgrade(SvnOperationFactory factory)
-
-
Method Detail
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopyin classSvnOperation<org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration>- Returns:
trueif the operation changes the working copy, otherwisefalse
-
setTargetWorkingCopyFormat
public void setTargetWorkingCopyFormat(int targetWorkingCopyFormat)
-
getTargetWorkingCopyFormat
public int getTargetWorkingCopyFormat()
-
-