public interface VersionControlSystem
Modifier and Type | Method and Description |
---|---|
void |
addAndCommit(java.io.File workingCopyUrl,
java.lang.String commitMessage,
java.lang.String... fileNames)
Add and commit the list of provided files to the remote repository.
|
java.lang.String |
checkout(java.lang.String remoteRepoUrl,
java.io.File workingCopyUrl)
Will perform a fresh checkout from the remote repository url to the local working copy url.
|
java.lang.String |
checkout(java.lang.String remoteRepoUrl,
java.io.File workingCopyUrl,
java.lang.String revision)
Will perform a fresh checkout from the remote repository url to the local working copy url, to the specified revision number.
|
void |
commit(java.io.File workingCopyUrl,
java.lang.String commitMessage)
Will send your changes to the remote repository, with the supplied commit message.
|
java.lang.String |
getImplementationName() |
java.lang.String |
getLocalRevision(java.io.File workingCopyUrl)
This method will return your local repositories current revision number/string/id.
|
java.lang.String |
getRemoteRevision(java.lang.String remoteRepoUrl,
java.io.File workingCopyUrl)
This method will return the remote repositories latest revision number/string/id.
|
java.util.List<RevisionHistoryItem> |
getRemoteRevisionHistory(java.lang.String remoteRepoUrl,
java.io.File workingCopyUrl,
int limit)
Will return a list of
RevisionHistoryItem 's from the remote repository. |
void |
recursiveAdd(java.io.File workingCopyUrl)
Will recursively check directories and sub directories adding all files for commit to the remote repository.
|
java.lang.String |
testConnection(java.lang.String remoteRepoUrl,
java.io.File workingCopyUrl)
Will perform an action on the remote repository to confirm that the url and credentials for the connection are valid.
|
java.lang.String |
update(java.io.File workingCopyUrl)
Will fetch and update your local working copy with the latest changes from the remote repository.
|
java.lang.String |
update(java.io.File workingCopyUrl,
java.lang.String revision)
Will fetch and update yuour local working copy to the specified revision.
|
java.lang.String testConnection(java.lang.String remoteRepoUrl, java.io.File workingCopyUrl) throws VcsException
remoteRepoUrl
- workingCopyUrl
- VcsException
java.lang.String checkout(java.lang.String remoteRepoUrl, java.io.File workingCopyUrl) throws VcsException
remoteRepoUrl
- workingCopyUrl
- VcsException
java.lang.String checkout(java.lang.String remoteRepoUrl, java.io.File workingCopyUrl, java.lang.String revision) throws VcsException
remoteRepoUrl
- workingCopyUrl
- revision
- VcsException
java.lang.String update(java.io.File workingCopyUrl, java.lang.String revision) throws VcsException
workingCopyUrl
- revision
- VcsException
java.lang.String update(java.io.File workingCopyUrl) throws VcsException
workingCopyUrl
- VcsException
void commit(java.io.File workingCopyUrl, java.lang.String commitMessage) throws VcsException
workingCopyUrl
- commitMessage
- VcsException
void recursiveAdd(java.io.File workingCopyUrl) throws VcsException
workingCopyUrl
- VcsException
void addAndCommit(java.io.File workingCopyUrl, java.lang.String commitMessage, java.lang.String... fileNames) throws VcsException
workingCopyUrl
- commitMessage
- fileNames
- relative to the workingCopyUrlVcsException
java.lang.String getImplementationName()
java.lang.String getRemoteRevision(java.lang.String remoteRepoUrl, java.io.File workingCopyUrl) throws VcsException
VcsException
java.lang.String getLocalRevision(java.io.File workingCopyUrl) throws VcsException
VcsException
java.util.List<RevisionHistoryItem> getRemoteRevisionHistory(java.lang.String remoteRepoUrl, java.io.File workingCopyUrl, int limit) throws VcsException
Will return a list of RevisionHistoryItem
's from the remote repository.
The results returned may also be limited by providing a limit > zero. If your supplied limit equals zero then the results will not be limited.
remoteRepoUrl
- RevisionHistoryItem
sVcsException