Class AbstractSvnCommit

java.lang.Object
All Implemented Interfaces:
ISvnObjectReceiver<SVNCommitInfo>, ISvnOperationOptionsProvider
Direct Known Subclasses:
SvnCommit, SvnImport, SvnRemoteCopy, SvnRemoteDelete, SvnRemoteMkDir, SvnRemoteSetProperty

public abstract class AbstractSvnCommit extends SvnReceivingOperation<SVNCommitInfo>
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 Details

    • commitMessage

      private java.lang.String commitMessage
    • revisionProperties

      private SVNProperties revisionProperties
    • commitHandler

      private ISvnCommitHandler commitHandler
  • Constructor Details

  • Method Details

    • getRevisionProperties

      public SVNProperties getRevisionProperties()
      Gets custom revision properties for the operation. If non-null, revisionProperties holds additional, custom revision properties (String names mapped to SVNPropertyValue values) to be set on the new revision. This table cannot contain any standard Subversion properties.
      Returns:
      custom revision properties
    • setRevisionProperties

      public void setRevisionProperties(SVNProperties revisionProperties)
      Sets custom revision properties for the operation. If non-null, revisionProperties holds additional, custom revision properties (String names mapped to SVNPropertyValue values) to be set on the new revision. This table cannot contain any standard Subversion properties.
      Parameters:
      revisionProperties - custom revision properties
    • getCommitMessage

      public java.lang.String getCommitMessage()
      Gets commit log message.
      Returns:
      commit log message
    • setCommitMessage

      public void setCommitMessage(java.lang.String commitMessage)
      Sets commit log message.
      Parameters:
      commitMessage - commit log message
    • setRevisionProperty

      public void setRevisionProperty(java.lang.String name, SVNPropertyValue value)
      Adds custom revision properties for the operation. See setRevisionProperties(SVNProperties)
      Parameters:
      name - name of custom revision property
      value - value of custom revision property
    • getCommitHandler

      public ISvnCommitHandler getCommitHandler()
      Gets the commit handler for the operation.
      Returns:
      commit handler
    • setCommitHandler

      public void setCommitHandler(ISvnCommitHandler commitHandler)
      Sets the commit handler for the operation.
      Parameters:
      commitHandler - commit handler