Class AccuRevScmProviderRepository

    • Field Detail

      • DEFAULT_TAG_FORMAT

        public static final java.lang.String DEFAULT_TAG_FORMAT
        See Also:
        Constant Field Values
      • streamName

        private java.lang.String streamName
      • projectPath

        private java.lang.String projectPath
      • tagFormat

        private java.lang.String tagFormat
      • checkoutRelativePath

        private java.lang.String checkoutRelativePath
      • shouldUseExportForNonPersistentCheckout

        private boolean shouldUseExportForNonPersistentCheckout
    • Constructor Detail

      • AccuRevScmProviderRepository

        public AccuRevScmProviderRepository()
    • Method Detail

      • getTagFormat

        public java.lang.String getTagFormat()
      • setTagFormat

        public void setTagFormat​(java.lang.String tagFormat)
      • getStreamName

        public java.lang.String getStreamName()
      • setStreamName

        public void setStreamName​(java.lang.String streamName)
      • getProjectPath

        public java.lang.String getProjectPath()
      • setProjectPath

        public void setProjectPath​(java.lang.String projectPath)
      • getAccuRev

        public AccuRev getAccuRev()
      • setAccuRev

        public void setAccuRev​(AccuRev accurev)
      • isWorkSpaceRoot

        public boolean isWorkSpaceRoot​(AccuRevInfo info)
        Parameters:
        info -
        Returns:
        true if info indicates a root of the workspace.
      • isWorkSpaceTop

        public boolean isWorkSpaceTop​(AccuRevInfo info)
      • tagToStream

        java.lang.String tagToStream​(java.lang.String tagName)
      • streamToTag

        java.lang.String streamToTag​(java.lang.String streamName)
      • setLogger

        public void setLogger​(ScmLogger logger)
      • getCheckoutRelativePath

        public java.lang.String getCheckoutRelativePath()
        The relative path of the directory of the checked out project in comparison to the checkout directory, or an empty String in case the checkout directory equals the project directory.

        With most SCMs, this is just an empty String, meaning that the checkout directory equals the project directory. But there are cases (e.g. ClearCase) where within the checkout directory, the directory structure of the SCM system is repeated. E.g. if you check out the project "my/project" to "/some/dir", the project sources are actually checked out to "some/dir/my/project". In this example, relativePathProjectDirectory would contain "my/project".

      • setCheckoutRelativePath

        public void setCheckoutRelativePath​(java.lang.String checkoutRelativePath)
      • getExportRelativePath

        public java.lang.String getExportRelativePath()
        Relative project path for export
        Returns:
        default same as getCheckoutRelativePath()
      • shouldUseExportForNonPersistentCheckout

        public boolean shouldUseExportForNonPersistentCheckout()
        When checkout is not expected to be refreshed or committed, should export be used instead? Perforce, Clearcase and AccuRev store their meta-data about file status within the server rather than files in the source tree. This makes checkouts within checkouts (eg release:perform) difficult. Typically there is a way to do a lightweight export instead which can be implemented as the "export" command. This is a hint to downstream applications that "export" is available and should be used in preference to "checkout" in cases where "update" and "commit" are not intended to be used. (ie release:perform)
        Returns:
        false by default
      • setShouldUseExportForNonPersistentCheckout

        public void setShouldUseExportForNonPersistentCheckout​(boolean shouldUseExportForNonPersistentCheckout)
      • getDepotRelativeProjectPath

        public java.lang.String getDepotRelativeProjectPath()
      • getSnapshotName

        public java.lang.String getSnapshotName​(java.lang.String tagName)
      • getRevision

        public java.lang.String getRevision​(java.lang.String streamName,
                                            java.util.Date date)
      • getRevision

        public java.lang.String getRevision​(java.lang.String stream,
                                            long fromTranId)
      • getRevision

        public java.lang.String getRevision​(java.lang.String streamName,
                                            java.lang.String transaction)
      • getDepotTransactionId

        public java.lang.String getDepotTransactionId​(java.lang.String stream,
                                                      java.lang.String tranSpec)
                                               throws AccuRevException
        Throws:
        AccuRevException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • formatTimeSpec

        public static java.lang.String formatTimeSpec​(java.util.Date when)