Package com.atlassian.bamboo.vcs.runtime
Class VcsWorkingCopy
java.lang.Object
com.atlassian.bamboo.vcs.runtime.VcsWorkingCopy
A state of a working copy. Plugin implementors can extend this object to add data specific to a repository type.
- Since:
- 5.14
-
Constructor Summary
ConstructorDescriptionVcsWorkingCopy
(long repositoryId, File path, String currentRevisionKey) Deprecated.since 5.8 as it doesn't set current branch and configured branchVcsWorkingCopy
(long repositoryId, File path, String currentRevisionKey, boolean hasNotCommittedChanges) Deprecated.since 5.8 as it doesn't set current branchVcsWorkingCopy
(long repositoryId, File path, String currentRevisionKey, boolean hasNotCommittedChanges, VcsBranch currentBranch, boolean currentBranchChanged) VcsWorkingCopy
(long repositoryId, File path, String currentRevisionKey, VcsBranch currentBranch, boolean currentBranchChanged) -
Method Summary
-
Constructor Details
-
VcsWorkingCopy
Deprecated.since 5.8 as it doesn't set current branch and configured branch -
VcsWorkingCopy
-
VcsWorkingCopy
@Deprecated public VcsWorkingCopy(long repositoryId, File path, String currentRevisionKey, boolean hasNotCommittedChanges) Deprecated.since 5.8 as it doesn't set current branch -
VcsWorkingCopy
-
-
Method Details
-
getPath
-
getRepositoryId
public long getRepositoryId() -
getCurrentRevisionKey
-
getCurrentBranch
Return branch the working copy is switched to. If null value is returned, the current branch is the same as in repository configuration. This method must not return empty value ifisCurrentBranchChanged()
return true. -
isCurrentBranchChanged
public boolean isCurrentBranchChanged() -
hasNotCommittedChanges
public boolean hasNotCommittedChanges()
-