private static class SvnCodec.SVNCommitHandler extends java.lang.Object implements ISVNCommitHandler, ISVNFileFilter
Modifier and Type | Field and Description |
---|---|
private ISvnCommitHandler |
targetHandler |
Constructor and Description |
---|
SVNCommitHandler(ISvnCommitHandler target) |
Modifier and Type | Method and 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.
|
SVNProperties |
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. |
private final ISvnCommitHandler targetHandler
public SVNCommitHandler(ISvnCommitHandler target)
public boolean accept(java.io.File file) throws SVNException
ISVNFileFilter
accept
in interface ISVNFileFilter
file
- file to accept or notSVNException
public SVNProperties getRevisionProperties(java.lang.String message, SVNCommitItem[] commitables, SVNProperties revisionProperties) throws SVNException
ISVNCommitHandler
commitables
) collected for committing and the commit log message.
Only the returned filtered revision properties will be set on a new committed revision.
getRevisionProperties
in interface ISVNCommitHandler
message
- log message for commitcommitables
- paths to commitrevisionProperties
- initial revision propertiesSVNException
public java.lang.String getCommitMessage(java.lang.String message, SVNCommitItem[] commitables) throws SVNException
ISVNCommitHandler
getCommitMessage
in interface ISVNCommitHandler
message
- an initial log messagecommitables
- an array of items to be committedSVNException