public interface UpdatingVcsWorkingCopyManager extends VcsWorkingCopyManager
VcsWorkingCopyManager
that can update source on vcs server.Modifier and Type | Method and Description |
---|---|
VcsWorkingCopy |
commitLocal(VcsWorkingCopy workingCopy,
VcsRepositoryData vcsRepositoryData,
String commitMessage)
Create a local commit.
|
default void |
stageChanges(VcsWorkingCopy workingCopy,
VcsRepositoryData repositoryData,
Collection<String> pathsToAdd)
Stage changes for committing.
|
VcsWorkingCopy |
updateRemote(VcsWorkingCopy workingCopy,
VcsRepositoryData vcsRepositoryData,
String commitMessage)
Update remote repository.
|
retrieveSourceCode, updateToLatestRevision
default void stageChanges(@NotNull VcsWorkingCopy workingCopy, @NotNull VcsRepositoryData repositoryData, @NotNull Collection<String> pathsToAdd) throws RepositoryException
Staging logic may differ between repository types. As an example, in Git it is necessary to stage added, modified and removed files before committing. In Mercurial on the other hand, only added and removed files need to be staged (modified files will be committed regardless, as they are considered tracked by the VCS).
workingCopy
- workspace to perform the stagingrepositoryData
- configuration of repositorypathsToAdd
- paths, relative to working copy directory, to stage for committing; if empty, all modified
files from working copy directory should be stagedRepositoryException
@NotNull VcsWorkingCopy commitLocal(@NotNull VcsWorkingCopy workingCopy, @NotNull VcsRepositoryData vcsRepositoryData, @NotNull String commitMessage) throws RepositoryException
workingCopy
- vcsRepositoryData
- commitMessage
- RepositoryException
@NotNull VcsWorkingCopy updateRemote(@NotNull VcsWorkingCopy workingCopy, @NotNull VcsRepositoryData vcsRepositoryData, @NotNull String commitMessage) throws RepositoryException
workingCopy
- vcsRepositoryData
- commitMessage
- - implementors are free to ignore this parameter.RepositoryException
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.