public interface AdvancedSCMManager
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Cleans workspace from artifacts.
|
void |
closeBranch(String branch,
String message,
String username)
Close given branch
|
void |
commit(String message,
String username)
Commit current workspace.
|
ReleaseBranch |
createReleaseBranch(String branch,
String releaseFilePath,
String releaseFileContent,
String message,
String username)
Create the release branch.
|
void |
ensureReleaseBranch(String branch,
String releaseFilePath,
String releaseFileContent,
String message,
String username)
Ensure the release branch exists.
|
String |
getBranch()
Get the current branch name in the workspace.
|
List<Branch> |
getBranches(boolean all)
Get Mercurial branches from command line output,
and put them in a List with Branches so it's nice to work with.
|
List<String> |
getBranchNames(boolean all)
Get open Mercurial branches from command line output,
and put them in a List so it's nice to work with.
|
ReleaseBranch |
getReleaseBranch(String branch)
Get release branch from given branch name.
|
void |
mergeHeads(String message,
String username)
Merge possible current branch's heads.
|
void |
mergeWorkspaceWith(String revision,
String updateTo)
Merge current workspace with given revision.
|
void |
pull()
Executes 'pull' command
|
void |
pull(String remote)
Pulls changes from remotes.
|
void |
pull(String remote,
String branch)
Pulls from given repository url.
|
void |
push(String... branchNames)
Executes 'push' command with -b
|
void |
stripLocal()
Strip out local commits which are not pushed yet.
|
void |
update(String revision)
Updates workspace to given revision/branch.
|
void |
updateClean(String revision)
Updates workspace to given revision/branch with cleaning.
|
List<Branch> getBranches(boolean all) throws AdvancedSCMException
all - : get all or only open branchesAdvancedSCMExceptionList<String> getBranchNames(boolean all) throws AdvancedSCMException
all - : get all or only open branchesAdvancedSCMExceptionString getBranch() throws AdvancedSCMException
AdvancedSCMExceptionvoid update(String revision) throws AdvancedSCMException
revision - : String with revision, hash of branchname to update to.AdvancedSCMExceptionvoid updateClean(String revision) throws AdvancedSCMException
revision - : String with revision, hash of branchname to update to.AdvancedSCMExceptionvoid stripLocal()
throws AdvancedSCMException
AdvancedSCMExceptionvoid clean()
throws AdvancedSCMException
AdvancedSCMExceptionvoid mergeWorkspaceWith(String revision, String updateTo) throws AdvancedSCMException
revision - : String with revision, hash or branchname to merge with.updateTo - : String with revision, hash or branchname to update working copy to before actual merge.AdvancedSCMExceptionvoid commit(String message, String username) throws AdvancedSCMException
message - : String commit messageusername - : String commit user name (with email)AdvancedSCMExceptionvoid mergeHeads(String message, String username) throws AdvancedSCMException
message - : String commit messageusername - : String commit user name (with email)AdvancedSCMExceptionvoid closeBranch(String branch, String message, String username) throws AdvancedSCMException
branch: - String branch name.message - : String with message to give this commit.username - : String commit user name (with email)AdvancedSCMExceptionvoid push(String... branchNames) throws AdvancedSCMException
AdvancedSCMExceptionvoid pull()
throws AdvancedSCMException
AdvancedSCMExceptionvoid pull(String remote) throws AdvancedSCMException
AdvancedSCMExceptionvoid pull(String remote, String branch) throws AdvancedSCMException
AdvancedSCMExceptionReleaseBranch getReleaseBranch(String branch) throws ReleaseBranchInvalidException
branch - : String branch nameReleaseBranchInvalidExceptionvoid ensureReleaseBranch(String branch, String releaseFilePath, String releaseFileContent, String message, String username) throws AdvancedSCMException, ReleaseBranchInvalidException
branch - : String branch namereleaseFilePath: - String relative path of the release filereleaseFileContent - : String release file contentmessage: - String commit message to add release fileusername: - String username of the commit commitAdvancedSCMExceptionReleaseBranchInvalidExceptionReleaseBranch createReleaseBranch(String branch, String releaseFilePath, String releaseFileContent, String message, String username) throws AdvancedSCMException, ReleaseBranchInvalidException
branch - : String branch namereleaseFilePath: - String relative path of the release filereleaseFileContent - : String release file contentmessage: - String commit message to add release fileusername: - String username of the commit commitAdvancedSCMExceptionReleaseBranchInvalidExceptionCopyright © 2004-2015. All Rights Reserved.