public class SVNCommandEnvironment extends AbstractSVNCommandEnvironment implements ISVNCommitHandler
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_LOG_MESSAGE_HEADER |
private java.lang.String |
myAuthorOfInterest |
private java.lang.String |
myChangelist |
private java.util.Collection |
myChangelists |
private java.lang.String |
myConfigDir |
private java.util.Map |
myConfigOptions |
private SVNConflictStats |
myConflictStats |
private SVNDepth |
myDepth |
private java.lang.String |
myDiffCommand |
private java.lang.String |
myEditorCommand |
private java.lang.String |
myEncoding |
private SVNRevision |
myEndRevision |
private java.util.Collection |
myExtensions |
private byte[] |
myFileData |
private java.lang.String |
myFilePath |
private boolean |
myIsAllowMixedRevisions |
private boolean |
myIsAutoProps |
private boolean |
myIsChangeOptionUsed |
private boolean |
myIsDescend |
private boolean |
myIsDryRun |
private boolean |
myIsForce |
private boolean |
myIsForceInteractive |
private boolean |
myIsForceLog |
private boolean |
myIsGitDiffFormat |
private boolean |
myIsHelp |
private boolean |
myIsIgnoreAncestry |
private boolean |
myIsIgnoreExternals |
private boolean |
myIsIgnoreKeywords |
private boolean |
myIsIgnoreProperties |
private boolean |
myIsIgnoreWhitespace |
private boolean |
myIsIncludeExternals |
private boolean |
myIsIncremental |
private boolean |
myIsKeepChangelist |
private boolean |
myIsKeepLocal |
private boolean |
myIsNoAuthCache |
private boolean |
myIsNoAutoProps |
private boolean |
myIsNoDiffAdded |
private boolean |
myIsNoDiffDeleted |
private boolean |
myIsNoIgnore |
private boolean |
myIsNoNewLine |
private boolean |
myIsNonInteractive |
private boolean |
myIsNoticeAncestry |
private boolean |
myIsNoUnlock |
private boolean |
myIsParents |
private boolean |
myIsPinExternals |
private boolean |
myIsPropertiesOnly |
private boolean |
myIsQuiet |
private boolean |
myIsRecordOnly |
private boolean |
myIsReIntegrate |
private boolean |
myIsRelocate |
private boolean |
myIsRemove |
private boolean |
myIsRemoveIgnored |
private boolean |
myIsRemoveUnversioned |
private boolean |
myIsReverseDiff |
private boolean |
myIsRevisionOptionUsed |
private boolean |
myIsRevprop |
private boolean |
myIsShowCopiesAsAdds |
private boolean |
myIsShowDiff |
private boolean |
myIsShowInhertiedProps |
private boolean |
myIsStopOnCopy |
private boolean |
myIsStrict |
private boolean |
myIsSummarize |
private boolean |
myIsTrustServerCertificate |
private java.util.EnumSet<SVNCertificateFailureKind> |
myIsTrustServerCertificateFailures |
private boolean |
myIsUpdate |
private boolean |
myIsUseMergeHistory |
private boolean |
myIsVerbose |
private boolean |
myIsVersion |
private boolean |
myIsWithAllRevprops |
private boolean |
myIsXML |
private long |
myLimit |
private java.lang.String |
myMessage |
private java.lang.String |
myNativeEOL |
private java.lang.String |
myNewTarget |
private java.lang.String |
myOldTarget |
private java.lang.String |
myPassword |
private java.lang.String |
myRegularExpression |
private SVNConflictAcceptPolicy |
myResolveAccept |
private SVNProperties |
myRevisionProperties |
private java.util.List |
myRevisionRanges |
private java.util.Map |
myServersOptions |
private SVNDepth |
mySetDepth |
private java.lang.String |
myShowItem |
private SVNShowRevisionType |
myShowRevsType |
private SVNRevision |
myStartRevision |
private int |
myStripCount |
private java.util.List |
myTargets |
private java.lang.String |
myUserName |
NULL
Constructor and Description |
---|
SVNCommandEnvironment(java.lang.String programName,
java.io.PrintStream out,
java.io.PrintStream err,
java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
protected ISVNAuthenticationManager |
createClientAuthenticationManager() |
protected DefaultSVNOptions |
createClientOptions() |
private java.lang.String |
createCommitMessageTemplate(SVNCommitItem[] items) |
java.lang.String |
getAuthorOfInterest() |
java.lang.String |
getChangelist() |
java.lang.String[] |
getChangelists() |
java.util.Collection |
getChangelistsCollection() |
protected java.lang.String |
getCommandLineClientName() |
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.
|
SVNConflictStats |
getConflictStats() |
SVNDepth |
getDepth() |
java.lang.String |
getDiffCommand() |
SVNDiffOptions |
getDiffOptions() |
java.lang.String |
getEditorCommand() |
java.lang.String |
getEncoding() |
SVNRevision |
getEndRevision() |
java.util.Collection |
getExtensions() |
byte[] |
getFileData() |
long |
getLimit() |
java.lang.String |
getMessage() |
java.lang.String |
getNativeEOL() |
java.lang.String |
getNewTarget() |
java.lang.String |
getOldTarget() |
java.lang.String |
getRegularExpression() |
SVNConflictAcceptPolicy |
getResolveAccept() |
SVNProperties |
getRevisionProperties() |
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. |
java.util.List |
getRevisionRanges() |
SVNDepth |
getSetDepth() |
java.lang.String |
getShowItem() |
SVNShowRevisionType |
getShowRevisionType() |
SVNRevision |
getStartRevision() |
int |
getStripCount() |
protected SVNCommand |
getSVNCommand() |
java.util.List |
getTargets() |
void |
initClientManager() |
protected void |
initOption(SVNOptionValue optionValue) |
protected void |
initOptions(SVNCommandLine commandLine) |
boolean |
isAllowMixedRevisions() |
boolean |
isAllRevisionProperties() |
boolean |
isChangeOptionUsed() |
boolean |
isDryRun() |
boolean |
isForce() |
boolean |
isForceLog() |
boolean |
isGitDiffFormat() |
boolean |
isIgnoreAncestry() |
boolean |
isIgnoreKeywords() |
boolean |
isIgnoreProperties() |
boolean |
isIgnoreWhitespace() |
boolean |
isIncludeExternals() |
boolean |
isIncremental() |
boolean |
isKeepChangelist() |
boolean |
isKeepLocal() |
boolean |
isNoAutoProps() |
boolean |
isNoDiffAdded() |
boolean |
isNoDiffDeleted() |
boolean |
isNoIgnore() |
boolean |
isNoNewLine() |
boolean |
isNoticeAncestry() |
boolean |
isNoUnlock() |
boolean |
isParents() |
boolean |
isPinExternals() |
boolean |
isPropertiesOnly() |
boolean |
isQuiet() |
boolean |
isRecordOnly() |
boolean |
isReIntegrate() |
boolean |
isRelocate() |
boolean |
isRemove() |
boolean |
isRemoveIgnored() |
boolean |
isRemoveUnversioned() |
boolean |
isReverseDiff() |
boolean |
isRevisionOptionUsed() |
boolean |
isRevprop() |
boolean |
isShowCopiesAsAdds() |
boolean |
isShowDiff() |
boolean |
isShowInheritedProps() |
boolean |
isStopOnCopy() |
boolean |
isStrict() |
boolean |
isSummarize() |
boolean |
isUpdate() |
boolean |
isUseMergeHistory() |
boolean |
isVerbose() |
boolean |
isVersion() |
boolean |
isXML() |
private void |
parseRevisionProperty(SVNOptionValue optionValue) |
protected java.lang.String |
refineCommandName(java.lang.String commandName,
SVNCommandLine commandLine) |
protected void |
validateOptions(SVNCommandLine commandLine) |
checkCancelled, combineTargets, createClientManager, dispose, getArguments, getClientManager, getCommand, getCommandName, getCommandName, getErr, getIn, getOptions, getOut, getProgramName, getRelativePath, getURLFromTarget, handleError, handleWarning, init, initCommand, isVersioned, parseRevision, popArgument, printCommitInfo, readFromFile, run, setArguments, setCancelled
private static final java.lang.String DEFAULT_LOG_MESSAGE_HEADER
private SVNDepth myDepth
private SVNDepth mySetDepth
private boolean myIsVerbose
private boolean myIsUpdate
private boolean myIsQuiet
private boolean myIsIncremental
private boolean myIsHelp
private boolean myIsIgnoreExternals
private boolean myIsIgnoreKeywords
private boolean myIsXML
private boolean myIsVersion
private java.lang.String myChangelist
private boolean myIsNonInteractive
private boolean myIsForceInteractive
private boolean myIsNoAuthCache
private java.lang.String myUserName
private java.lang.String myPassword
private java.lang.String myConfigDir
private boolean myIsDescend
private boolean myIsNoIgnore
private boolean myIsRevprop
private boolean myIsStrict
private SVNRevision myStartRevision
private SVNRevision myEndRevision
private boolean myIsForce
private java.lang.String myFilePath
private byte[] myFileData
private java.util.List myTargets
private java.lang.String myEncoding
private java.lang.String myMessage
private boolean myIsForceLog
private java.lang.String myEditorCommand
private java.lang.String myDiffCommand
private SVNProperties myRevisionProperties
private boolean myIsNoUnlock
private boolean myIsDryRun
private boolean myIsRecordOnly
private boolean myIsUseMergeHistory
private java.util.Collection myExtensions
private boolean myIsIgnoreAncestry
private boolean myIsShowCopiesAsAdds
private java.lang.String myNativeEOL
private boolean myIsRelocate
private boolean myIsNoAutoProps
private boolean myIsAutoProps
private boolean myIsKeepChangelist
private boolean myIsParents
private boolean myIsKeepLocal
private SVNConflictAcceptPolicy myResolveAccept
private boolean myIsRemove
private java.lang.String myNewTarget
private java.lang.String myOldTarget
private boolean myIsNoticeAncestry
private boolean myIsSummarize
private boolean myIsNoDiffDeleted
private boolean myIsNoDiffAdded
private long myLimit
private boolean myIsStopOnCopy
private boolean myIsChangeOptionUsed
private boolean myIsRevisionOptionUsed
private boolean myIsWithAllRevprops
private boolean myIsReIntegrate
private boolean myIsTrustServerCertificate
private java.util.EnumSet<SVNCertificateFailureKind> myIsTrustServerCertificateFailures
private boolean myIsAllowMixedRevisions
private java.util.List myRevisionRanges
private SVNShowRevisionType myShowRevsType
private java.util.Collection myChangelists
private java.lang.String myAuthorOfInterest
private java.lang.String myRegularExpression
private java.util.Map myConfigOptions
private java.util.Map myServersOptions
private boolean myIsGitDiffFormat
private boolean myIsShowDiff
private boolean myIsPropertiesOnly
private boolean myIsIgnoreProperties
private boolean myIsReverseDiff
private boolean myIsIgnoreWhitespace
private int myStripCount
private boolean myIsShowInhertiedProps
private boolean myIsIncludeExternals
private java.lang.String myShowItem
private boolean myIsNoNewLine
private boolean myIsPinExternals
private boolean myIsRemoveUnversioned
private boolean myIsRemoveIgnored
private SVNConflictStats myConflictStats
public SVNCommandEnvironment(java.lang.String programName, java.io.PrintStream out, java.io.PrintStream err, java.io.InputStream in)
public void initClientManager() throws SVNException
initClientManager
in class AbstractSVNCommandEnvironment
SVNException
protected java.lang.String refineCommandName(java.lang.String commandName, SVNCommandLine commandLine) throws SVNException
refineCommandName
in class AbstractSVNCommandEnvironment
SVNException
protected DefaultSVNOptions createClientOptions() throws SVNException
createClientOptions
in class AbstractSVNCommandEnvironment
SVNException
protected ISVNAuthenticationManager createClientAuthenticationManager()
createClientAuthenticationManager
in class AbstractSVNCommandEnvironment
protected void initOptions(SVNCommandLine commandLine) throws SVNException
initOptions
in class AbstractSVNCommandEnvironment
SVNException
protected void initOption(SVNOptionValue optionValue) throws SVNException
initOption
in class AbstractSVNCommandEnvironment
SVNException
protected SVNCommand getSVNCommand()
protected void validateOptions(SVNCommandLine commandLine) throws SVNException
validateOptions
in class AbstractSVNCommandEnvironment
SVNException
protected java.lang.String getCommandLineClientName()
getCommandLineClientName
in class AbstractSVNCommandEnvironment
public boolean isReIntegrate()
public SVNShowRevisionType getShowRevisionType()
public boolean isChangeOptionUsed()
public boolean isRevisionOptionUsed()
public java.lang.String getChangelist()
public java.lang.String[] getChangelists()
public java.util.Collection getChangelistsCollection()
public boolean isIgnoreKeywords()
public SVNDepth getDepth()
public SVNDepth getSetDepth()
public boolean isVerbose()
public boolean isNoIgnore()
public boolean isUpdate()
public boolean isQuiet()
public boolean isIncremental()
public boolean isRevprop()
public boolean isStrict()
public java.util.List getRevisionRanges()
public SVNRevision getStartRevision()
public SVNRevision getEndRevision()
public boolean isXML()
public boolean isVersion()
public boolean isForce()
public java.lang.String getEncoding()
public byte[] getFileData()
public java.util.List getTargets()
public boolean isForceLog()
public java.lang.String getEditorCommand()
public java.lang.String getDiffCommand()
public java.lang.String getMessage()
public SVNProperties getRevisionProperties()
public boolean isDryRun()
public boolean isIgnoreAncestry()
public boolean isShowCopiesAsAdds()
public boolean isGitDiffFormat()
public boolean isPropertiesOnly()
public boolean isIgnoreProperties()
public boolean isReverseDiff()
public boolean isIgnoreWhitespace()
public boolean isShowDiff()
public boolean isUseMergeHistory()
public boolean isRecordOnly()
public java.util.Collection getExtensions()
public java.lang.String getNativeEOL()
public boolean isRelocate()
public boolean isNoUnlock()
public boolean isKeepChangelist()
public boolean isParents()
public boolean isKeepLocal()
public SVNConflictAcceptPolicy getResolveAccept()
public boolean isRemove()
public boolean isSummarize()
public boolean isNoticeAncestry()
public boolean isNoDiffDeleted()
public boolean isNoDiffAdded()
public java.lang.String getOldTarget()
public java.lang.String getNewTarget()
public java.lang.String getAuthorOfInterest()
public boolean isNoAutoProps()
public java.lang.String getRegularExpression()
public long getLimit()
public boolean isStopOnCopy()
public boolean isAllRevisionProperties()
public int getStripCount()
public SVNDiffOptions getDiffOptions() throws SVNException
SVNException
public boolean isAllowMixedRevisions()
public boolean isShowInheritedProps()
public java.lang.String getShowItem()
public boolean isNoNewLine()
public boolean isPinExternals()
public boolean isRemoveUnversioned()
public boolean isRemoveIgnored()
public boolean isIncludeExternals()
public SVNConflictStats getConflictStats()
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
private void parseRevisionProperty(SVNOptionValue optionValue) throws SVNException
SVNException
private java.lang.String createCommitMessageTemplate(SVNCommitItem[] items)