|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.paylogic.jenkins.advancedscm.backends.MercurialBackend
public class MercurialBackend
Mercurial Implementation of AdvancedSCMManager
| Constructor Summary | |
|---|---|
MercurialBackend(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.plugins.mercurial.MercurialSCM scm)
Please do not instantiate objects of this class yourself, use SCMManagerFactory. |
|
| Method Summary | |
|---|---|
void |
clean()
Cleans workspace from artifact. |
void |
closeBranch(String message,
String username)
Close given branch. |
void |
commit(String message,
String username)
Commit the workspace changes with the given message. |
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 MercurialBranches so it's nice to work with. |
List<String> |
getBranchNames(boolean all)
Get Mercurial branches from command line output, and put them in a List so it's nice to work with. |
String |
merge()
Merge possible current branch's heads. |
String |
mergeWorkspaceWith(String revision)
Merge current workspace with given revision. |
String |
mergeWorkspaceWith(String revision,
String updateTo)
Update workspace to 'updateTo' and then merge that workspace with 'revision'. |
String |
pull()
Executes 'hg pull' |
String |
pull(String remote)
Executes 'hg pull |
String |
pull(String remote,
String branch)
Executes 'hg pull |
String |
push(String... branchNames)
Executes 'hg push' |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MercurialBackend(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
hudson.plugins.mercurial.MercurialSCM scm)
throws IOException,
InterruptedException
IOException
InterruptedException| Method Detail |
|---|
public List<Branch> getBranches(boolean all)
getBranches in interface AdvancedSCMManagerall: - get all or only open branches
public List<String> getBranchNames(boolean all)
getBranchNames in interface AdvancedSCMManagerall: - get all or only open branches
public String getBranch()
getBranch in interface AdvancedSCMManager
public void update(String revision)
throws AdvancedSCMException
update in interface AdvancedSCMManagerrevision - : String with revision, hash of branchname to update to.
AdvancedSCMException
public void updateClean(String revision)
throws AdvancedSCMException
updateClean in interface AdvancedSCMManagerrevision - : String with revision, hash of branchname to update to.
AdvancedSCMException
public void stripLocal()
throws AdvancedSCMException
stripLocal in interface AdvancedSCMManagerAdvancedSCMException
public void clean()
throws AdvancedSCMException
clean in interface AdvancedSCMManagerAdvancedSCMException
public void commit(String message,
String username)
throws AdvancedSCMException
commit in interface AdvancedSCMManagermessage - : String with message to give this commit.
AdvancedSCMException
public void closeBranch(String message,
String username)
throws AdvancedSCMException
closeBranch in interface AdvancedSCMManagermessage - : String with message to give this commit.
AdvancedSCMException
public String mergeWorkspaceWith(String revision)
throws AdvancedSCMException
mergeWorkspaceWith in interface AdvancedSCMManagerrevision - : String with revision, hash or branchname to merge with.
AdvancedSCMException
public String merge()
throws AdvancedSCMException
merge in interface AdvancedSCMManagerAdvancedSCMException
public String mergeWorkspaceWith(String revision,
String updateTo)
throws AdvancedSCMException
mergeWorkspaceWith in interface AdvancedSCMManagerrevision - : String with revision, hash or branchname to merge with.updateTo - : String with revision, hash or branchname to update to before merge.
AdvancedSCMException
public String push(String... branchNames)
throws AdvancedSCMException
push in interface AdvancedSCMManagerAdvancedSCMException
public String pull()
throws AdvancedSCMException
pull in interface AdvancedSCMManagerAdvancedSCMException
public String pull(String remote)
throws AdvancedSCMException
pull in interface AdvancedSCMManagerAdvancedSCMException
public String pull(String remote,
String branch)
throws AdvancedSCMException
pull in interface AdvancedSCMManagerAdvancedSCMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||