Package org.tmatesoft.svn.cli.svn
Class SVNCommandEnvironment
java.lang.Object
org.tmatesoft.svn.cli.AbstractSVNCommandEnvironment
org.tmatesoft.svn.cli.svn.SVNCommandEnvironment
- All Implemented Interfaces:
ISVNCanceller
,ISVNCommitHandler
public class SVNCommandEnvironment
extends AbstractSVNCommandEnvironment
implements ISVNCommitHandler
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private String
private String
private Collection
private String
private Map
private SVNConflictStats
private SVNDepth
private String
private String
private String
private SVNRevision
private Collection
private byte[]
private String
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private EnumSet<SVNCertificateFailureKind>
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private long
private String
private String
private String
private String
private String
private String
private SVNConflictAcceptPolicy
private SVNProperties
private List
private Map
private SVNDepth
private String
private SVNShowRevisionType
private SVNRevision
private int
private List
private String
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULL
-
Constructor Summary
ConstructorsConstructorDescriptionSVNCommandEnvironment
(String programName, PrintStream out, PrintStream err, InputStream in) -
Method Summary
Modifier and TypeMethodDescriptionprotected ISVNAuthenticationManager
protected DefaultSVNOptions
private String
createCommitMessageTemplate
(SVNCommitItem[] items) String[]
protected String
getCommitMessage
(String message, SVNCommitItem[] commitables) Handles the incoming initial log message and items intended for a commit and returns a new commit log message.getDepth()
byte[]
long
getLimit()
getRevisionProperties
(String message, SVNCommitItem[] commitables, SVNProperties revisionProperties) Handles the incoming revision properties and returns filtered revision properties given the paths (represented bycommitables
) collected for committing and the commit log message.int
protected SVNCommand
void
protected void
initOption
(SVNOptionValue optionValue) protected void
initOptions
(SVNCommandLine commandLine) boolean
boolean
boolean
boolean
isDryRun()
boolean
isForce()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isQuiet()
boolean
boolean
boolean
boolean
isRemove()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isStrict()
boolean
boolean
isUpdate()
boolean
boolean
boolean
boolean
isXML()
private void
parseRevisionProperty
(SVNOptionValue optionValue) protected String
refineCommandName
(String commandName, SVNCommandLine commandLine) protected void
validateOptions
(SVNCommandLine commandLine) Methods inherited from class org.tmatesoft.svn.cli.AbstractSVNCommandEnvironment
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
-
Field Details
-
DEFAULT_LOG_MESSAGE_HEADER
- See Also:
-
myDepth
-
mySetDepth
-
myIsVerbose
private boolean myIsVerbose -
myIsUpdate
private boolean myIsUpdate -
myIsQuiet
private boolean myIsQuiet -
myIsIncremental
private boolean myIsIncremental -
myIsHelp
private boolean myIsHelp -
myIsIgnoreExternals
private boolean myIsIgnoreExternals -
myIsIgnoreKeywords
private boolean myIsIgnoreKeywords -
myIsXML
private boolean myIsXML -
myIsVersion
private boolean myIsVersion -
myChangelist
-
myIsNonInteractive
private boolean myIsNonInteractive -
myIsForceInteractive
private boolean myIsForceInteractive -
myIsNoAuthCache
private boolean myIsNoAuthCache -
myUserName
-
myPassword
-
myConfigDir
-
myIsDescend
private boolean myIsDescend -
myIsNoIgnore
private boolean myIsNoIgnore -
myIsRevprop
private boolean myIsRevprop -
myIsStrict
private boolean myIsStrict -
myStartRevision
-
myEndRevision
-
myIsForce
private boolean myIsForce -
myFilePath
-
myFileData
private byte[] myFileData -
myTargets
-
myEncoding
-
myMessage
-
myIsForceLog
private boolean myIsForceLog -
myEditorCommand
-
myDiffCommand
-
myRevisionProperties
-
myIsNoUnlock
private boolean myIsNoUnlock -
myIsDryRun
private boolean myIsDryRun -
myIsRecordOnly
private boolean myIsRecordOnly -
myIsUseMergeHistory
private boolean myIsUseMergeHistory -
myExtensions
-
myIsIgnoreAncestry
private boolean myIsIgnoreAncestry -
myIsShowCopiesAsAdds
private boolean myIsShowCopiesAsAdds -
myNativeEOL
-
myIsRelocate
private boolean myIsRelocate -
myIsNoAutoProps
private boolean myIsNoAutoProps -
myIsAutoProps
private boolean myIsAutoProps -
myIsKeepChangelist
private boolean myIsKeepChangelist -
myIsParents
private boolean myIsParents -
myIsKeepLocal
private boolean myIsKeepLocal -
myResolveAccept
-
myIsRemove
private boolean myIsRemove -
myNewTarget
-
myOldTarget
-
myIsNoticeAncestry
private boolean myIsNoticeAncestry -
myIsSummarize
private boolean myIsSummarize -
myIsNoDiffDeleted
private boolean myIsNoDiffDeleted -
myIsNoDiffAdded
private boolean myIsNoDiffAdded -
myLimit
private long myLimit -
myIsStopOnCopy
private boolean myIsStopOnCopy -
myIsChangeOptionUsed
private boolean myIsChangeOptionUsed -
myIsRevisionOptionUsed
private boolean myIsRevisionOptionUsed -
myIsWithAllRevprops
private boolean myIsWithAllRevprops -
myIsReIntegrate
private boolean myIsReIntegrate -
myIsTrustServerCertificate
private boolean myIsTrustServerCertificate -
myIsTrustServerCertificateFailures
-
myIsAllowMixedRevisions
private boolean myIsAllowMixedRevisions -
myRevisionRanges
-
myShowRevsType
-
myChangelists
-
myAuthorOfInterest
-
myRegularExpression
-
myConfigOptions
-
myServersOptions
-
myIsGitDiffFormat
private boolean myIsGitDiffFormat -
myIsShowDiff
private boolean myIsShowDiff -
myIsPropertiesOnly
private boolean myIsPropertiesOnly -
myIsIgnoreProperties
private boolean myIsIgnoreProperties -
myIsReverseDiff
private boolean myIsReverseDiff -
myIsIgnoreWhitespace
private boolean myIsIgnoreWhitespace -
myStripCount
private int myStripCount -
myIsShowInhertiedProps
private boolean myIsShowInhertiedProps -
myIsIncludeExternals
private boolean myIsIncludeExternals -
myShowItem
-
myIsNoNewLine
private boolean myIsNoNewLine -
myIsPinExternals
private boolean myIsPinExternals -
myIsRemoveUnversioned
private boolean myIsRemoveUnversioned -
myIsRemoveIgnored
private boolean myIsRemoveIgnored -
myConflictStats
-
-
Constructor Details
-
SVNCommandEnvironment
-
-
Method Details
-
initClientManager
- Overrides:
initClientManager
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
refineCommandName
protected String refineCommandName(String commandName, SVNCommandLine commandLine) throws SVNException - Specified by:
refineCommandName
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
createClientOptions
- Specified by:
createClientOptions
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
createClientAuthenticationManager
- Specified by:
createClientAuthenticationManager
in classAbstractSVNCommandEnvironment
-
initOptions
- Overrides:
initOptions
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
initOption
- Specified by:
initOption
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
getSVNCommand
-
validateOptions
- Overrides:
validateOptions
in classAbstractSVNCommandEnvironment
- Throws:
SVNException
-
getCommandLineClientName
- Specified by:
getCommandLineClientName
in classAbstractSVNCommandEnvironment
-
isReIntegrate
public boolean isReIntegrate() -
getShowRevisionType
-
isChangeOptionUsed
public boolean isChangeOptionUsed() -
isRevisionOptionUsed
public boolean isRevisionOptionUsed() -
getChangelist
-
getChangelists
-
getChangelistsCollection
-
isIgnoreKeywords
public boolean isIgnoreKeywords() -
getDepth
-
getSetDepth
-
isVerbose
public boolean isVerbose() -
isNoIgnore
public boolean isNoIgnore() -
isUpdate
public boolean isUpdate() -
isQuiet
public boolean isQuiet() -
isIncremental
public boolean isIncremental() -
isRevprop
public boolean isRevprop() -
isStrict
public boolean isStrict() -
getRevisionRanges
-
getStartRevision
-
getEndRevision
-
isXML
public boolean isXML() -
isVersion
public boolean isVersion() -
isForce
public boolean isForce() -
getEncoding
-
getFileData
public byte[] getFileData() -
getTargets
-
isForceLog
public boolean isForceLog() -
getEditorCommand
-
getDiffCommand
-
getMessage
-
getRevisionProperties
-
isDryRun
public boolean isDryRun() -
isIgnoreAncestry
public boolean isIgnoreAncestry() -
isShowCopiesAsAdds
public boolean isShowCopiesAsAdds() -
isGitDiffFormat
public boolean isGitDiffFormat() -
isPropertiesOnly
public boolean isPropertiesOnly() -
isIgnoreProperties
public boolean isIgnoreProperties() -
isReverseDiff
public boolean isReverseDiff() -
isIgnoreWhitespace
public boolean isIgnoreWhitespace() -
isShowDiff
public boolean isShowDiff() -
isUseMergeHistory
public boolean isUseMergeHistory() -
isRecordOnly
public boolean isRecordOnly() -
getExtensions
-
getNativeEOL
-
isRelocate
public boolean isRelocate() -
isNoUnlock
public boolean isNoUnlock() -
isKeepChangelist
public boolean isKeepChangelist() -
isParents
public boolean isParents() -
isKeepLocal
public boolean isKeepLocal() -
getResolveAccept
-
isRemove
public boolean isRemove() -
isSummarize
public boolean isSummarize() -
isNoticeAncestry
public boolean isNoticeAncestry() -
isNoDiffDeleted
public boolean isNoDiffDeleted() -
isNoDiffAdded
public boolean isNoDiffAdded() -
getOldTarget
-
getNewTarget
-
getAuthorOfInterest
-
isNoAutoProps
public boolean isNoAutoProps() -
getRegularExpression
-
getLimit
public long getLimit() -
isStopOnCopy
public boolean isStopOnCopy() -
isAllRevisionProperties
public boolean isAllRevisionProperties() -
getStripCount
public int getStripCount() -
getDiffOptions
- Throws:
SVNException
-
isAllowMixedRevisions
public boolean isAllowMixedRevisions() -
isShowInheritedProps
public boolean isShowInheritedProps() -
getShowItem
-
isNoNewLine
public boolean isNoNewLine() -
isPinExternals
public boolean isPinExternals() -
isRemoveUnversioned
public boolean isRemoveUnversioned() -
isRemoveIgnored
public boolean isRemoveIgnored() -
isIncludeExternals
public boolean isIncludeExternals() -
getConflictStats
-
getRevisionProperties
public SVNProperties getRevisionProperties(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 bycommitables
) 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 interfaceISVNCommitHandler
- Parameters:
message
- log message for commitcommitables
- paths to commitrevisionProperties
- initial revision properties- Returns:
- filtered revision properties
- Throws:
SVNException
-
getCommitMessage
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 interfaceISVNCommitHandler
- Parameters:
message
- an initial log messagecommitables
- an array of items to be committed- Returns:
- a new log message string or NULL to cancel commit operation.
- Throws:
SVNException
-
parseRevisionProperty
- Throws:
SVNException
-
createCommitMessageTemplate
-