Class SvnCodec.SVNCommitHandler

java.lang.Object
org.tmatesoft.svn.core.internal.wc2.compat.SvnCodec.SVNCommitHandler
All Implemented Interfaces:
ISVNCommitHandler, ISVNFileFilter
Enclosing class:
SvnCodec

private static class SvnCodec.SVNCommitHandler extends java.lang.Object implements ISVNCommitHandler, ISVNFileFilter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final ISvnCommitHandler
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(java.io.File file)
    This method is called to add extra filtering of files.
    java.lang.String
    getCommitMessage(java.lang.String message, SVNCommitItem[] commitables)
    Handles the incoming initial log message and items intended for a commit and returns a new commit log message.
    getRevisionProperties(java.lang.String message, SVNCommitItem[] commitables, SVNProperties revisionProperties)
    Handles the incoming revision properties and returns filtered revision properties given the paths (represented by commitables) collected for committing and the commit log message.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • accept

      public boolean accept(java.io.File file) throws SVNException
      Description copied from interface: ISVNFileFilter
      This method is called to add extra filtering of files.
      Specified by:
      accept in interface ISVNFileFilter
      Parameters:
      file - file to accept or not
      Returns:
      true if the file should be accepted
      Throws:
      SVNException
    • getRevisionProperties

      public SVNProperties getRevisionProperties(java.lang.String message, SVNCommitItem[] commitables, SVNProperties revisionProperties) throws SVNException
      Description copied from interface: ISVNCommitHandler
      Handles the incoming revision properties and returns filtered revision properties given the paths (represented by commitables) collected for committing and the commit log message.

      Only the returned filtered revision properties will be set on a new committed revision.

      Specified by:
      getRevisionProperties in interface ISVNCommitHandler
      Parameters:
      message - log message for commit
      commitables - paths to commit
      revisionProperties - initial revision properties
      Returns:
      filtered revision properties
      Throws:
      SVNException
    • getCommitMessage

      public java.lang.String getCommitMessage(java.lang.String message, SVNCommitItem[] commitables) throws SVNException
      Description copied from interface: ISVNCommitHandler
      Handles the incoming initial log message and items intended for a commit and returns a new commit log message.
      Specified by:
      getCommitMessage in interface ISVNCommitHandler
      Parameters:
      message - an initial log message
      commitables - an array of items to be committed
      Returns:
      a new log message string or NULL to cancel commit operation.
      Throws:
      SVNException