Package org.tmatesoft.svn.core.wc2
Class SvnOperationFactory
java.lang.Object
org.tmatesoft.svn.core.wc2.SvnOperationFactory
- All Implemented Interfaces:
ISvnOperationOptionsProvider
Represents factory for the Svn* operations.
Contains corresponding create*() methods for all supported operations.
Provides operation options by implementing
ISvnOperationOptionsProvider
interface.
Handles working copy access and provides access to it getWcContext()
, isAutoCloseContext()
.
Has set of working copy utility methods: getWorkingCopyRoot(File, boolean)
, isWorkingCopyRoot(File)
,
isVersionedDirectory(File)
, detectWcGeneration(File, boolean)
,
setPrimaryWcGeneration(SvnWcGeneration)
, isPrimaryWcGenerationOnly()
- Version:
- 1.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate java.util.Map<java.lang.Class<?>,
java.util.List<ISvnOperationRunner<?, SvnOperation<?>>>> private ISVNAuthenticationManager
private boolean
private boolean
private ISVNCanceller
private SvnWcGeneration
private ISVNEventHandler
private boolean
private java.util.Map<java.lang.Class<?>,
java.util.List<ISvnOperationRunner<?, SvnOperation<?>>>> private ISvnOperationHandler
private ISVNOptions
private SvnWcGeneration
private ISVNRepositoryPool
private int
private java.util.Map<java.lang.Class<?>,
java.util.List<ISvnOperationRunner<?, SvnOperation<?>>>> private java.util.Map<java.lang.Class<?>,
java.util.List<ISvnOperationRunner<?, SvnOperation<?>>>> private SVNWCContext
-
Constructor Summary
ConstructorsConstructorDescriptionCreates operation factory and initializes it with emptycontext
.SvnOperationFactory
(SVNWCContext context) Creates operation factory and initializes it withcontext
. -
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertRefCount
(SvnOperation<?> operation, SVNWCContext wcContext) (package private) SvnCommitPacket
collectCommitItems
(SvnCommit operation) Creates annotate operation.Creates canonicalize URLs operation.Creates cat operation.Creates checkout operation.Creates cleanup operation.Creates commit operation.Creates copy operation.Creates diff operation.Creates diff summarize operation.Creates export operation.Creates get changelist paths operation.Creates get info operation.Creates get merge info operation.Creates get properties operation.Creates operation for retrieving file size from the repositoryCreates get status operation.Creates get status summary operation.Creates import operation.Creates list operation.Creates log operation.Creates log merge info operation.Creates mark replaced operation.Creates merge operation.Creates remote make directory operation.Creates patch operation.Creates relocate operation.Creates remote copy operation.Creates remote delete operation.Creates remote make directory operation.Creates remote set property operation.Creates copy revision properties synchronization operation.Creates repository create administrative operation.Creates repository dump administrative operation.Creates dumpfilter operation.Creates operation for retrieving author from the repository.Creates operation for retrieving file contents from the repository.Creates operation for retrieving changed paths from the repository.Creates operation for retrieving changed directories from the repository.Creates operation for retrieving date from the repository.Creates repository diff operation.Creates operation for retrieving the history from the repository.Creates operation for retrieving info from the repository.Creates operation for retrieving the lock from the repository.Creates operation for retrieving repository log.Creates operation for retrieving properties from the repository.Creates operation for retrieving property from the repository.Creates operation for retrieving revision properties from the repository.Creates operation for retrieving revision property from the repository.Creates operation for retrieving items tree from the repository.Creates operation for retrieving repository UUID.Creates operation for retrieving the latest revision from the repository.Creates repository hot copy administrative operation.Creates initialize synchronization operation.Creates administrative operation for retrieving list of locks from the repository.Creates administrative operation for retrieving list of transactions from the repository.Creates repository load administrative operation.Creates repository pack administrative operation.Creates repository recover administrative operation.Creates repository remove locks administrative operation.Creates repository remove transactions administrative operation.Creates repository set UUID administrative operation.Creates repository synchronize operation.Creates operation for retrieving repository synchronization info.Creates repository upgrade administrative operation.Creates repository verify administrative operation.Creates resolve operation.Creates revert operation.Creates add operation.Creates delete operation.Creates set changelist operation.Creates set lock operation.Creates set property operation.Creates suggest merge sources operation.Creates switch operation.Creates unlock operation.Creates update operation.Creates upgrade operation.static SvnWcGeneration
detectWcGeneration
(java.io.File path, boolean climbUp) Detects working copy generation (1.6 or 1.7 format) by the working copy path.static SvnWcGeneration
detectWcGeneration
(java.io.File path, boolean climbUp, boolean isAdditionMode) Detects working copy generation (1.6 or 1.7 format) by the working copy path in (not in) the addition mode.void
dispose()
Disposes context and repository pool if needed.private void
Gets operation's authentication manager.Gets the cancel handler of the operation.Gets the event handler for the operation.protected ISvnOperationRunner<?,
SvnOperation<?>> getImplementation
(SvnOperation<?> operation) Get a callback that is called before and after each operationGets operation's options.Returns primary (default) working copy generation.Gets the pool of repositories.private static java.util.List<ISvnOperationRunner<?,
SvnOperation<?>>> getRunners
(java.lang.Class<?> clazz, java.util.Map<java.lang.Class<?>, java.util.List<ISvnOperationRunner<?, SvnOperation<?>>>> map) private SvnWcGeneration[]
getRunnerScope
(ISvnOperationRunner<?, ? extends SvnOperation<?>> runner) Returns secondary working copy generation.Returns working copy context.static java.io.File
getWorkingCopyRoot
(java.io.File versionedDir, boolean stopOnExternals) Searches working copy root path by the versioned directory.private static java.io.File
getWorkingCopyRootNg
(java.io.File versionedDir, boolean stopOnExternals) private static java.io.File
getWorkingCopyRootOld
(java.io.File versionedDir, boolean stopOnExternals) boolean
boolean
Returns whether to dispose context when operation finishes.private boolean
boolean
Returns whether the operations should work only on primary working copy generation (for example only on SVN 1.7 working copy) or on both primary and secondary generations.static boolean
isVersionedDirectory
(java.io.File directory) Detects whether the directory is versioned directory.static boolean
isVersionedDirectory
(java.io.File directory, boolean isAdditionMode) Detects whether the directory is versioned directory in or (not in) the addition mode.boolean
static boolean
isWorkingCopyRoot
(java.io.File versionedDir) Detects whether the versioned directory is working copy root.private SVNWCContext
obtainWcContext
(SvnOperation<?> operation) protected void
registerOperationRunner
(java.lang.Class<?> operationClass, ISvnOperationRunner<?, ? extends SvnOperation<?>> runner) private void
private void
releaseWcContext
(SVNWCContext wcContext) protected java.lang.Object
run
(SvnOperation<?> operation) void
setAuthenticationManager
(ISVNAuthenticationManager authenticationManager) Sets operation's authentication manager.void
setAutoCloseContext
(boolean autoCloseContext) Sets whether to dispose context when operation finishes.void
setAutoDisposeRepositoryPool
(boolean dispose) Sets whether to dispose repository pool ondispose()
call.void
setCanceller
(ISVNCanceller canceller) Sets the cancel handler of the operation.void
setEventHandler
(ISVNEventHandler eventHandler) Sets the event handler for the operation.void
setOperationHandler
(ISvnOperationHandler operationHandler) Sets a callback that is called before and after each operationvoid
setOptions
(ISVNOptions options) Sets operation's options and disposes working copy context.void
setPrimaryWcGeneration
(SvnWcGeneration primaryWcGeneration) (Re)sets primary (default) working copy generation.void
setRepositoryPool
(ISVNRepositoryPool repositoryPool) Sets pool of repositories.void
setWcGenerationSticky
(boolean isWcGenerationSticky) When set to true, first encountered working copy generation becomes 'sticky' for this instance ofSvnOperationFactory
and no working copy format detection will be performed for subsequent operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
anyFormatOperationRunners
private java.util.Map<java.lang.Class<?>,java.util.List<ISvnOperationRunner<?, anyFormatOperationRunnersSvnOperation<?>>>> -
noneOperationRunners
private java.util.Map<java.lang.Class<?>,java.util.List<ISvnOperationRunner<?, noneOperationRunnersSvnOperation<?>>>> -
v17OperationRunners
private java.util.Map<java.lang.Class<?>,java.util.List<ISvnOperationRunner<?, v17OperationRunnersSvnOperation<?>>>> -
v16OperationRunners
private java.util.Map<java.lang.Class<?>,java.util.List<ISvnOperationRunner<?, v16OperationRunnersSvnOperation<?>>>> -
authenticationManager
-
canceller
-
eventHandler
-
options
-
repositoryPool
-
operationHandler
-
autoCloseContext
private boolean autoCloseContext -
autoDisposeRepositoryPool
private boolean autoDisposeRepositoryPool -
wcContext
-
-
runLevel
private int runLevel -
detectedWcGeneration
-
isWcGenerationSticky
private boolean isWcGenerationSticky
-
-
Constructor Details
-
SvnOperationFactory
public SvnOperationFactory()Creates operation factory and initializes it with emptycontext
. -
SvnOperationFactory
Creates operation factory and initializes it withcontext
. Ifcontext
is set, retrieves itsoptions
andeventHandler
and setsautoCloseContext
tofalse
, otherwise setsautoCloseContext
totrue
.- Parameters:
context
- operation's context
-
-
Method Details
-
registerRunners
private void registerRunners() -
isAutoCloseContext
public boolean isAutoCloseContext()Returns whether to dispose context when operation finishes.- Returns:
true
if the context should be disposed, otherwisefalse
-
setAutoCloseContext
public void setAutoCloseContext(boolean autoCloseContext) Sets whether to dispose context when operation finishes.- Parameters:
autoCloseContext
-true
if the context should be disposed, otherwisefalse
-
getAuthenticationManager
Gets operation's authentication manager. If not set, creates default authentication manager.- Specified by:
getAuthenticationManager
in interfaceISvnOperationOptionsProvider
- Returns:
- authentication manager
-
getCanceller
Gets the cancel handler of the operation. If client'scanceler
is not set, returnseventHandler
as a canceler.- Specified by:
getCanceller
in interfaceISvnOperationOptionsProvider
- Returns:
- cancel handler
-
getEventHandler
Gets the event handler for the operation. This event handler will be dispatchedSVNEvent
objects to provide detailed information about actions and progress state of version control operations. IfwcContext
is set, returnsSVNWCContext.getEventHandler()
- Specified by:
getEventHandler
in interfaceISvnOperationOptionsProvider
- Returns:
- handler for events
- See Also:
-
getOperationHandler
Get a callback that is called before and after each operation- Returns:
- a callback that is called before and after each operation
-
getRepositoryPool
Gets the pool of repositories. If pool is not created, createsDefaultSVNRepositoryPool
with the authentication manager, options, andautoDisposeRepositoryPool
=true
.- Specified by:
getRepositoryPool
in interfaceISvnOperationOptionsProvider
- Returns:
- pool of repositories
-
getOptions
Gets operation's options. If options are not set, creates default readonly options.- Specified by:
getOptions
in interfaceISvnOperationOptionsProvider
- Returns:
- options of the operation
-
setAuthenticationManager
Sets operation's authentication manager. IfrepositoryPool
is set, set its authentication manager to this value.- Parameters:
authenticationManager
- authentication manager
-
setCanceller
Sets the cancel handler of the operation.- Parameters:
canceller
- cancel handler
-
setEventHandler
Sets the event handler for the operation. This event handler will be dispatchedSVNEvent
objects to provide detailed information about actions and progress state of version control operations. IfwcContext
is set, sets its event handler to this one. IfwcContext
is not set, disposes it.- Parameters:
eventHandler
- handler for events- See Also:
-
setOptions
Sets operation's options and disposes working copy context.- Parameters:
options
- options of the operation
-
setRepositoryPool
Sets pool of repositories. IfrepositoryPool
is notnull
setsautoDisposeRepositoryPool
tofalse
, otherwise totrue
- Parameters:
repositoryPool
- pool of repositories
-
setOperationHandler
Sets a callback that is called before and after each operation- Parameters:
operationHandler
- callback to call before and after operation
-
dispose
public void dispose()Disposes context and repository pool if needed. -
createAnnotate
Creates annotate operation.- Returns:
- new
SvnAnnotate
object
-
createCat
Creates cat operation.- Returns:
- new
SvnCat
object
-
createImport
Creates import operation.- Returns:
- new
SvnImport
object
-
createCopy
Creates copy operation.- Returns:
- new
SvnCat
object
-
createRemoteCopy
Creates remote copy operation.- Returns:
- new
SvnRemoteCopy
object
-
createRemoteMkDir
Creates remote make directory operation.- Returns:
- new
SvnRemoteMkDir
object
-
createRemoteSetProperty
Creates remote set property operation.- Returns:
- new
SvnRemoteSetProperty
object
-
createSetChangelist
Creates set changelist operation.- Returns:
- new
SvnSetChangelist
object
-
createGetChangelistPaths
Creates get changelist paths operation.- Returns:
- new
SvnGetChangelistPaths
object
-
createSetLock
Creates set lock operation.- Returns:
- new
SvnSetLock
object
-
createUnlock
Creates unlock operation.- Returns:
- new
SvnUnlock
object
-
createUpgrade
Creates upgrade operation.- Returns:
- new
SvnUpgrade
object
-
createGetInfo
Creates get info operation.- Returns:
- new
SvnGetInfo
object
-
createGetProperties
Creates get properties operation.- Returns:
- new
SvnGetProperties
object
-
createGetStatus
Creates get status operation.- Returns:
- new
SvnGetStatus
object
-
createUpdate
Creates update operation.- Returns:
- new
SvnUpdate
object
-
createSwitch
Creates switch operation.- Returns:
- new
SvnSwitch
object
-
createCheckout
Creates checkout operation.- Returns:
- new
SvnCheckout
object
-
createRelocate
Creates relocate operation.- Returns:
- new
SvnRelocate
object
-
createExport
Creates export operation.- Returns:
- new
SvnExport
object
-
createScheduleForAddition
Creates add operation.- Returns:
- new
SvnScheduleForAddition
object
-
createCommit
Creates commit operation.- Returns:
- new
SvnCommit
object
-
createScheduleForRemoval
Creates delete operation.- Returns:
- new
SvnScheduleForRemoval
object
-
createMarkReplaced
Creates mark replaced operation.- Returns:
- new
SvnMarkReplaced
object
-
createRevert
Creates revert operation.- Returns:
- new
SvnRevert
object
-
createSetProperty
Creates set property operation.- Returns:
- new
SvnSetProperty
object
-
createLog
Creates log operation.- Returns:
- new
SvnLog
object
-
createMkDir
Creates remote make directory operation.- Returns:
- new
SvnRemoteMkDir
object
-
createRemoteDelete
Creates remote delete operation.- Returns:
- new
SvnRemoteDelete
object
-
createMerge
Creates merge operation.- Returns:
- new
SvnMerge
object
-
createDiff
Creates diff operation.- Returns:
- new
SvnDiff
object
-
createPatch
Creates patch operation.- Returns:
- new
SvnPatch
object
-
createDiffSummarize
Creates diff summarize operation.- Returns:
- new
SvnDiffSummarize
object
-
createSuggestMergeSources
Creates suggest merge sources operation.- Returns:
- new
SvnSuggestMergeSources
object
-
createGetMergeInfo
Creates get merge info operation.- Returns:
- new
SvnGetMergeInfo
object
-
createLogMergeInfo
Creates log merge info operation.- Returns:
- new
SvnLogMergeInfo
object
-
createResolve
Creates resolve operation.- Returns:
- new
SvnResolve
object
-
createCleanup
Creates cleanup operation.- Returns:
- new
SvnCleanup
object
-
createList
Creates list operation.- Returns:
- new
SvnList
object
-
createCanonicalizeUrls
Creates canonicalize URLs operation.- Returns:
- new
SvnCanonicalizeUrls
object
-
createRepositoryDump
Creates repository dump administrative operation.- Returns:
- new
SvnRepositoryDump
object
-
createRepositoryCreate
Creates repository create administrative operation.- Returns:
- new
SvnRepositoryCreate
object
-
createRepositoryHotCopy
Creates repository hot copy administrative operation.- Returns:
- new
SvnRepositoryHotCopy
object
-
createRepositoryLoad
Creates repository load administrative operation.- Returns:
- new
SvnRepositoryLoad
object
-
createRepositoryListLocks
Creates administrative operation for retrieving list of locks from the repository.- Returns:
- new
SvnRepositoryListLocks
object
-
createRepositoryListTransactions
Creates administrative operation for retrieving list of transactions from the repository.- Returns:
- new
SvnRepositoryListTransactions
object
-
createRepositoryPack
Creates repository pack administrative operation.- Returns:
- new
SvnRepositoryPack
object
-
createRepositoryRecover
Creates repository recover administrative operation.- Returns:
- new
SvnRepositoryRecover
object
-
createRepositoryRemoveLocks
Creates repository remove locks administrative operation.- Returns:
- new
SvnRepositoryRemoveLocks
object
-
createRepositoryRemoveTransactions
Creates repository remove transactions administrative operation.- Returns:
- new
SvnRepositoryRemoveTransactions
object
-
createRepositorySetUUID
Creates repository set UUID administrative operation.- Returns:
- new
SvnRepositorySetUUID
object
-
createRepositoryUpgrade
Creates repository upgrade administrative operation.- Returns:
- new
SvnRepositoryUpgrade
object
-
createRepositoryVerify
Creates repository verify administrative operation.- Returns:
- new
SvnRepositoryVerify
object
-
createRepositoryInitialize
Creates initialize synchronization operation.- Returns:
- new
SvnRepositoryInitialize
object
-
createRepositorySyncInfo
Creates operation for retrieving repository synchronization info.- Returns:
- new
SvnRepositorySyncInfo
object
-
createRepositoryCopyRevisionProperties
Creates copy revision properties synchronization operation.- Returns:
- new
SvnRepositoryCopyRevisionProperties
object
-
createRepositorySynchronize
Creates repository synchronize operation.- Returns:
- new
SvnRepositorySynchronize
object
-
createRepositoryFilter
Creates dumpfilter operation.- Returns:
- new
SvnRepositoryFilter
object
-
createRepositoryGetAuthor
Creates operation for retrieving author from the repository.- Returns:
- new
SvnRepositoryGetAuthor
object
-
createRepositoryGetDate
Creates operation for retrieving date from the repository.- Returns:
- new
SvnRepositoryGetDate
object
-
createRepositoryGetInfo
Creates operation for retrieving info from the repository.- Returns:
- new
SvnRepositoryGetInfo
object
-
createRepositoryGetLock
Creates operation for retrieving the lock from the repository.- Returns:
- new
SvnRepositoryGetLock
object
-
createRepositoryGetLog
Creates operation for retrieving repository log.- Returns:
- new
SvnRepositoryGetLog
object
-
createRepositoryGetUUID
Creates operation for retrieving repository UUID.- Returns:
- new
SvnRepositoryGetUUID
object
-
createRepositoryGetYoungest
Creates operation for retrieving the latest revision from the repository.- Returns:
- new
SvnRepositoryGetYoungest
object
-
createRepositoryGetProperty
Creates operation for retrieving property from the repository.- Returns:
- new
SvnRepositoryGetProperty
object
-
createRepositoryGetRevisionProperty
Creates operation for retrieving revision property from the repository.- Returns:
- new
SvnRepositoryGetRevisionProperty
object
-
createRepositoryGetProperties
Creates operation for retrieving properties from the repository.- Returns:
- new
SvnRepositoryGetProperties
object
-
createRepositoryGetCat
Creates operation for retrieving file contents from the repository.- Returns:
- new
SvnRepositoryCat
object
-
createRepositoryGetChanged
Creates operation for retrieving changed paths from the repository.- Returns:
- new
SvnRepositoryGetChanged
object
-
createRepositoryGetChangedDirectories
Creates operation for retrieving changed directories from the repository.- Returns:
- new
SvnRepositoryGetChangedDirectories
object
-
createRepositoryGetDiff
Creates repository diff operation.- Returns:
- new
SvnRepositoryGetDiff
object
-
createRepositoryGetHistory
Creates operation for retrieving the history from the repository.- Returns:
- new
SvnRepositoryGetHistory
object
-
createRepositoryGetTree
Creates operation for retrieving items tree from the repository.- Returns:
- new
SvnRepositoryGetTree
object
-
createRepositoryGetRevisionProperties
Creates operation for retrieving revision properties from the repository.- Returns:
- new
SvnRepositoryGetRevisionProperties
object
-
createGetRepositoryFileSize
Creates operation for retrieving file size from the repository- Returns:
- new
SvnRepositoryGetFileSize
object
-
createGetStatusSummary
Creates get status summary operation.- Returns:
- new
SvnStatusSummary
object
-
createSetWCDbVersion
-
setAutoDisposeRepositoryPool
public void setAutoDisposeRepositoryPool(boolean dispose) Sets whether to dispose repository pool ondispose()
call. This flag has sense only ifrepositoryPool
field is notnull
. Otherwise the flag value can be overwritten bysetRepositoryPool(ISVNRepositoryPool)
orgetRepositoryPool()
calls.- Parameters:
dispose
- whether to dispose repository pool ondispose()
call
-
run
- Throws:
SVNException
-
releaseWcContext
- Throws:
SVNException
-
obtainWcContext
-
disposeWcContext
private void disposeWcContext() -
isAutoDisposeRepositoryPool
private boolean isAutoDisposeRepositoryPool() -
getImplementation
protected ISvnOperationRunner<?,SvnOperation<?>> getImplementation(SvnOperation<?> operation) throws SVNException - Throws:
SVNException
-
isPrimaryWcGenerationOnly
public boolean isPrimaryWcGenerationOnly()Returns whether the operations should work only on primary working copy generation (for example only on SVN 1.7 working copy) or on both primary and secondary generations.- Returns:
true
operations should work only on primary working copy generation, iffalse
both primary and secondary generations are supported
-
isAssertRefCount
public boolean isAssertRefCount() -
registerOperationRunner
protected void registerOperationRunner(java.lang.Class<?> operationClass, ISvnOperationRunner<?, ? extends SvnOperation<?>> runner) -
isWorkingCopyRoot
public static boolean isWorkingCopyRoot(java.io.File versionedDir) Detects whether the versioned directory is working copy root.- Parameters:
versionedDir
- directory to check- Returns:
true
if the directory is working copy root, otherwisefalse
-
isVersionedDirectory
public static boolean isVersionedDirectory(java.io.File directory) Detects whether the directory is versioned directory.- Parameters:
directory
- directory to check- Returns:
true
if the directory is versioned directory, otherwisefalse
-
isVersionedDirectory
public static boolean isVersionedDirectory(java.io.File directory, boolean isAdditionMode) Detects whether the directory is versioned directory in or (not in) the addition mode.- Parameters:
directory
- directory to checkisAdditionMode
-true
if it is addition mode, otherwisefalse
- Returns:
true
if the directory is versioned directory, otherwisefalse
-
getWorkingCopyRoot
public static java.io.File getWorkingCopyRoot(java.io.File versionedDir, boolean stopOnExternals) throws SVNException Searches working copy root path by the versioned directory.- Parameters:
versionedDir
- versioned directorystopOnExternals
-true
if externals should not be searched, otherwisefalse
- Returns:
- working copy root
- Throws:
SVNException
-
getWorkingCopyRootOld
private static java.io.File getWorkingCopyRootOld(java.io.File versionedDir, boolean stopOnExternals) throws SVNException - Throws:
SVNException
-
getWorkingCopyRootNg
private static java.io.File getWorkingCopyRootNg(java.io.File versionedDir, boolean stopOnExternals) throws SVNException - Throws:
SVNException
-
detectWcGeneration
public static SvnWcGeneration detectWcGeneration(java.io.File path, boolean climbUp) throws SVNException Detects working copy generation (1.6 or 1.7 format) by the working copy path. Recursively searches the by path's parents up to the root ifclimbUp
istrue
.- Parameters:
path
- working copy pathclimbUp
-true
if search recursively in path's parents, otherwisefalse
- Returns:
- working copy generation
- Throws:
SVNException
-
detectWcGeneration
public static SvnWcGeneration detectWcGeneration(java.io.File path, boolean climbUp, boolean isAdditionMode) throws SVNException Detects working copy generation (1.6 or 1.7 format) by the working copy path in (not in) the addition mode. Recursively searches the by path's parents up to the root ifclimbUp
istrue
.- Parameters:
path
- working copy pathclimbUp
-true
if search recursively in path's parents, otherwisefalse
isAdditionMode
-true
if it is addition mode, otherwisefalse
- Returns:
- working copy generation
- Throws:
SVNException
-
getRunners
private static java.util.List<ISvnOperationRunner<?,SvnOperation<?>>> getRunners(java.lang.Class<?> clazz, java.util.Map<java.lang.Class<?>, java.util.List<ISvnOperationRunner<?, SvnOperation<?>>>> map) -
getWcContext
Returns working copy context.- Returns:
- working copy context
-
getPrimaryWcGeneration
Returns primary (default) working copy generation.- Returns:
- working copy generation
-
getSecondaryWcGeneration
Returns secondary working copy generation.- Returns:
- working copy generation
-
setPrimaryWcGeneration
(Re)sets primary (default) working copy generation. IfprimaryWcGeneration
is notnull
, registers operations' runners.- Parameters:
primaryWcGeneration
-
-
setWcGenerationSticky
public void setWcGenerationSticky(boolean isWcGenerationSticky) When set to true, first encountered working copy generation becomes 'sticky' for this instance ofSvnOperationFactory
and no working copy format detection will be performed for subsequent operation.- Parameters:
isWcGenerationSticky
-
-
isWcGenerationSticky
public boolean isWcGenerationSticky()- Returns:
- true when this instance of
SvnOperationFactory
- See Also:
-
getRunnerScope
-
collectCommitItems
- Throws:
SVNException
-
assertRefCount
- Throws:
SVNException
-