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 branchesAdvancedSCMException
List<String> getBranchNames(boolean all) throws AdvancedSCMException
all
- : get all or only open branchesAdvancedSCMException
String getBranch() throws AdvancedSCMException
AdvancedSCMException
void update(String revision) throws AdvancedSCMException
revision
- : String with revision, hash of branchname to update to.AdvancedSCMException
void updateClean(String revision) throws AdvancedSCMException
revision
- : String with revision, hash of branchname to update to.AdvancedSCMException
void stripLocal() throws AdvancedSCMException
AdvancedSCMException
void clean() throws AdvancedSCMException
AdvancedSCMException
void 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.AdvancedSCMException
void commit(String message, String username) throws AdvancedSCMException
message
- : String commit messageusername
- : String commit user name (with email)AdvancedSCMException
void mergeHeads(String message, String username) throws AdvancedSCMException
message
- : String commit messageusername
- : String commit user name (with email)AdvancedSCMException
void 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)AdvancedSCMException
void push(String... branchNames) throws AdvancedSCMException
AdvancedSCMException
void pull() throws AdvancedSCMException
AdvancedSCMException
void pull(String remote) throws AdvancedSCMException
AdvancedSCMException
void pull(String remote, String branch) throws AdvancedSCMException
AdvancedSCMException
ReleaseBranch getReleaseBranch(String branch) throws ReleaseBranchInvalidException
branch
- : String branch nameReleaseBranchInvalidException
void 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 commitAdvancedSCMException
ReleaseBranchInvalidException
ReleaseBranch 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 commitAdvancedSCMException
ReleaseBranchInvalidException
Copyright © 2004-2015. All Rights Reserved.