Package org.tmatesoft.svn.core.wc2
Class AbstractSvnCommit
java.lang.Object
org.tmatesoft.svn.core.wc2.SvnOperation<T>
org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SVNCommitInfo>
org.tmatesoft.svn.core.wc2.AbstractSvnCommit
- All Implemented Interfaces:
ISvnObjectReceiver<SVNCommitInfo>
,ISvnOperationOptionsProvider
- Direct Known Subclasses:
SvnCommit
,SvnImport
,SvnRemoteCopy
,SvnRemoteDelete
,SvnRemoteMkDir
,SvnRemoteSetProperty
Base class for operations that change repository.
The AbstractSvnCommit class provides methods to perform operations that
relate to committing changes to an SVN repository. These operations are
similar to respective commands of the native SVN command line client and
include ones which operate on working copy items as well as ones that operate
only on a repository: commit, import, remote copy, remote delete, remote make directory, remote set property.
SvnOperation.run()
method returns SVNCommitInfo
information on a new revision as the result of the commit.- Version:
- 1.7
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the commit handler for the operation.Gets commit log message.Gets custom revision properties for the operation.void
setCommitHandler
(ISvnCommitHandler commitHandler) Sets the commit handler for the operation.void
setCommitMessage
(String commitMessage) Sets commit log message.void
setRevisionProperties
(SVNProperties revisionProperties) Sets custom revision properties for the operation.void
setRevisionProperty
(String name, SVNPropertyValue value) Adds custom revision properties for the operation.Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation
first, getReceiver, initDefaults, last, receive, run, setReceiver
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, isChangesWorkingCopy, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalMode
-
Field Details
-
commitMessage
-
revisionProperties
-
commitHandler
-
-
Constructor Details
-
AbstractSvnCommit
-
-
Method Details
-
getRevisionProperties
Gets custom revision properties for the operation. If non-null
,revisionProperties
holds additional, custom revision properties (String
names mapped toSVNPropertyValue
values) to be set on the new revision. This table cannot contain any standard Subversion properties.- Returns:
- custom revision properties
-
setRevisionProperties
Sets custom revision properties for the operation. If non-null
,revisionProperties
holds additional, custom revision properties (String
names mapped toSVNPropertyValue
values) to be set on the new revision. This table cannot contain any standard Subversion properties.- Parameters:
revisionProperties
- custom revision properties
-
getCommitMessage
Gets commit log message.- Returns:
- commit log message
-
setCommitMessage
Sets commit log message.- Parameters:
commitMessage
- commit log message
-
setRevisionProperty
Adds custom revision properties for the operation. SeesetRevisionProperties(SVNProperties)
- Parameters:
name
- name of custom revision propertyvalue
- value of custom revision property
-
getCommitHandler
Gets the commit handler for the operation.- Returns:
- commit handler
-
setCommitHandler
Sets the commit handler for the operation.- Parameters:
commitHandler
- commit handler
-