Interface PushCapableRepository

    • Method Detail

      • pushRevision

        void pushRevision​(@NotNull
                          @NotNull File sourceDirectory,
                          @Nullable
                          @Nullable String vcsRevisionKey)
                   throws RepositoryException
        Push the specified revision to the remote directory. Throws RepositoryException when failed due to connection problems or similar.
        Parameters:
        vcsRevisionKey - - the revisionKey (usually a branch name) to push
        sourceDirectory - - the working directory of the repository we want to push from
        Throws:
        RepositoryException - - when something goes wrong
      • commit

        @NotNull
        @NotNull String commit​(@NotNull
                               @NotNull File sourceDirectory,
                               @NotNull
                               @NotNull String message)
                        throws RepositoryException
        Perform a commit (dvcs commit).
        Parameters:
        sourceDirectory - - which workspace directory to perform the commit
        message - - what message use for commit
        Returns:
        Created commit revision key
        Throws:
        RepositoryException - - when something goes wrong