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 Details

    • DEFAULT_LOG_MESSAGE_HEADER

      private static final String DEFAULT_LOG_MESSAGE_HEADER
      See Also:
    • myDepth

      private SVNDepth myDepth
    • mySetDepth

      private SVNDepth 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

      private String myChangelist
    • myIsNonInteractive

      private boolean myIsNonInteractive
    • myIsForceInteractive

      private boolean myIsForceInteractive
    • myIsNoAuthCache

      private boolean myIsNoAuthCache
    • myUserName

      private String myUserName
    • myPassword

      private String myPassword
    • myConfigDir

      private String myConfigDir
    • myIsDescend

      private boolean myIsDescend
    • myIsNoIgnore

      private boolean myIsNoIgnore
    • myIsRevprop

      private boolean myIsRevprop
    • myIsStrict

      private boolean myIsStrict
    • myStartRevision

      private SVNRevision myStartRevision
    • myEndRevision

      private SVNRevision myEndRevision
    • myIsForce

      private boolean myIsForce
    • myFilePath

      private String myFilePath
    • myFileData

      private byte[] myFileData
    • myTargets

      private List myTargets
    • myEncoding

      private String myEncoding
    • myMessage

      private String myMessage
    • myIsForceLog

      private boolean myIsForceLog
    • myEditorCommand

      private String myEditorCommand
    • myDiffCommand

      private String myDiffCommand
    • myRevisionProperties

      private SVNProperties myRevisionProperties
    • myIsNoUnlock

      private boolean myIsNoUnlock
    • myIsDryRun

      private boolean myIsDryRun
    • myIsRecordOnly

      private boolean myIsRecordOnly
    • myIsUseMergeHistory

      private boolean myIsUseMergeHistory
    • myExtensions

      private Collection myExtensions
    • myIsIgnoreAncestry

      private boolean myIsIgnoreAncestry
    • myIsShowCopiesAsAdds

      private boolean myIsShowCopiesAsAdds
    • myNativeEOL

      private String 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

      private SVNConflictAcceptPolicy myResolveAccept
    • myIsRemove

      private boolean myIsRemove
    • myNewTarget

      private String myNewTarget
    • myOldTarget

      private String 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

      private EnumSet<SVNCertificateFailureKind> myIsTrustServerCertificateFailures
    • myIsAllowMixedRevisions

      private boolean myIsAllowMixedRevisions
    • myRevisionRanges

      private List myRevisionRanges
    • myShowRevsType

      private SVNShowRevisionType myShowRevsType
    • myChangelists

      private Collection myChangelists
    • myAuthorOfInterest

      private String myAuthorOfInterest
    • myRegularExpression

      private String myRegularExpression
    • myConfigOptions

      private Map myConfigOptions
    • myServersOptions

      private Map 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

      private String myShowItem
    • myIsNoNewLine

      private boolean myIsNoNewLine
    • myIsPinExternals

      private boolean myIsPinExternals
    • myIsRemoveUnversioned

      private boolean myIsRemoveUnversioned
    • myIsRemoveIgnored

      private boolean myIsRemoveIgnored
    • myConflictStats

      private SVNConflictStats myConflictStats
  • Constructor Details

  • Method Details

    • initClientManager

      public void initClientManager() throws SVNException
      Overrides:
      initClientManager in class AbstractSVNCommandEnvironment
      Throws:
      SVNException
    • refineCommandName

      protected String refineCommandName(String commandName, SVNCommandLine commandLine) throws SVNException
      Specified by:
      refineCommandName in class AbstractSVNCommandEnvironment
      Throws:
      SVNException
    • createClientOptions

      protected DefaultSVNOptions createClientOptions() throws SVNException
      Specified by:
      createClientOptions in class AbstractSVNCommandEnvironment
      Throws:
      SVNException
    • createClientAuthenticationManager

      protected ISVNAuthenticationManager createClientAuthenticationManager()
      Specified by:
      createClientAuthenticationManager in class AbstractSVNCommandEnvironment
    • initOptions

      protected void initOptions(SVNCommandLine commandLine) throws SVNException
      Overrides:
      initOptions in class AbstractSVNCommandEnvironment
      Throws:
      SVNException
    • initOption

      protected void initOption(SVNOptionValue optionValue) throws SVNException
      Specified by:
      initOption in class AbstractSVNCommandEnvironment
      Throws:
      SVNException
    • getSVNCommand

      protected SVNCommand getSVNCommand()
    • validateOptions

      protected void validateOptions(SVNCommandLine commandLine) throws SVNException
      Overrides:
      validateOptions in class AbstractSVNCommandEnvironment
      Throws:
      SVNException
    • getCommandLineClientName

      protected String getCommandLineClientName()
      Specified by:
      getCommandLineClientName in class AbstractSVNCommandEnvironment
    • isReIntegrate

      public boolean isReIntegrate()
    • getShowRevisionType

      public SVNShowRevisionType getShowRevisionType()
    • isChangeOptionUsed

      public boolean isChangeOptionUsed()
    • isRevisionOptionUsed

      public boolean isRevisionOptionUsed()
    • getChangelist

      public String getChangelist()
    • getChangelists

      public String[] getChangelists()
    • getChangelistsCollection

      public Collection getChangelistsCollection()
    • isIgnoreKeywords

      public boolean isIgnoreKeywords()
    • getDepth

      public SVNDepth getDepth()
    • getSetDepth

      public SVNDepth 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

      public List getRevisionRanges()
    • getStartRevision

      public SVNRevision getStartRevision()
    • getEndRevision

      public SVNRevision getEndRevision()
    • isXML

      public boolean isXML()
    • isVersion

      public boolean isVersion()
    • isForce

      public boolean isForce()
    • getEncoding

      public String getEncoding()
    • getFileData

      public byte[] getFileData()
    • getTargets

      public List getTargets()
    • isForceLog

      public boolean isForceLog()
    • getEditorCommand

      public String getEditorCommand()
    • getDiffCommand

      public String getDiffCommand()
    • getMessage

      public String getMessage()
    • getRevisionProperties

      public SVNProperties 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

      public Collection getExtensions()
    • getNativeEOL

      public String getNativeEOL()
    • isRelocate

      public boolean isRelocate()
    • isNoUnlock

      public boolean isNoUnlock()
    • isKeepChangelist

      public boolean isKeepChangelist()
    • isParents

      public boolean isParents()
    • isKeepLocal

      public boolean isKeepLocal()
    • getResolveAccept

      public SVNConflictAcceptPolicy getResolveAccept()
    • isRemove

      public boolean isRemove()
    • isSummarize

      public boolean isSummarize()
    • isNoticeAncestry

      public boolean isNoticeAncestry()
    • isNoDiffDeleted

      public boolean isNoDiffDeleted()
    • isNoDiffAdded

      public boolean isNoDiffAdded()
    • getOldTarget

      public String getOldTarget()
    • getNewTarget

      public String getNewTarget()
    • getAuthorOfInterest

      public String getAuthorOfInterest()
    • isNoAutoProps

      public boolean isNoAutoProps()
    • getRegularExpression

      public String getRegularExpression()
    • getLimit

      public long getLimit()
    • isStopOnCopy

      public boolean isStopOnCopy()
    • isAllRevisionProperties

      public boolean isAllRevisionProperties()
    • getStripCount

      public int getStripCount()
    • getDiffOptions

      public SVNDiffOptions getDiffOptions() throws SVNException
      Throws:
      SVNException
    • isAllowMixedRevisions

      public boolean isAllowMixedRevisions()
    • isShowInheritedProps

      public boolean isShowInheritedProps()
    • getShowItem

      public String getShowItem()
    • isNoNewLine

      public boolean isNoNewLine()
    • isPinExternals

      public boolean isPinExternals()
    • isRemoveUnversioned

      public boolean isRemoveUnversioned()
    • isRemoveIgnored

      public boolean isRemoveIgnored()
    • isIncludeExternals

      public boolean isIncludeExternals()
    • getConflictStats

      public SVNConflictStats 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 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 String getCommitMessage(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
    • parseRevisionProperty

      private void parseRevisionProperty(SVNOptionValue optionValue) throws SVNException
      Throws:
      SVNException
    • createCommitMessageTemplate

      private String createCommitMessageTemplate(SVNCommitItem[] items)