public class AdvancedHgExe
extends hudson.plugins.mercurial.HgExe
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PUSH_TIMEOUT |
static int |
DEFAULT_TIMEOUT |
| Constructor and Description |
|---|
AdvancedHgExe(hudson.plugins.mercurial.MercurialSCM scm,
hudson.Launcher launcher,
hudson.model.AbstractBuild build,
hudson.model.TaskListener listener) |
| Modifier and Type | Method and Description |
|---|---|
String |
add(String filename,
String content) |
String |
branch(String... extraArgs) |
String |
branches(String[] extraArgs) |
String |
clean() |
String |
commit(String message,
String username,
String... extraArgs) |
static int |
joinWithPossibleTimeout(hudson.Launcher.ProcStarter proc,
int timeout,
hudson.model.TaskListener listener)
For use with
HgExe.launch(hudson.util.ArgumentListBuilder) (or similar) when running commands not inside a build and which therefore might not be easily killed. |
String |
merge(String revision) |
String[] |
out() |
String |
popen(hudson.FilePath repository,
hudson.model.TaskListener listener,
int timeout,
hudson.util.ArgumentListBuilder args) |
String |
popen(hudson.FilePath repository,
hudson.model.TaskListener listener,
int timeout,
hudson.util.ArgumentListBuilder args,
int[] returnCodes)
Runs the command and captures the output.
|
String |
pullChanges() |
String |
pullChanges(String otherRepo) |
String |
pullChanges(String otherRepo,
String branch) |
String |
push(String[] extraArgs) |
String |
strip(String[] extraArgs) |
String |
update(String revision) |
String |
updateClean(String revision) |
public static int DEFAULT_TIMEOUT
public static int DEFAULT_PUSH_TIMEOUT
public AdvancedHgExe(hudson.plugins.mercurial.MercurialSCM scm,
hudson.Launcher launcher,
hudson.model.AbstractBuild build,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic String popen(hudson.FilePath repository, hudson.model.TaskListener listener, int timeout, hudson.util.ArgumentListBuilder args, int[] returnCodes) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static int joinWithPossibleTimeout(hudson.Launcher.ProcStarter proc,
int timeout,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
HgExe.launch(hudson.util.ArgumentListBuilder) (or similar) when running commands not inside a build and which therefore might not be easily killed.IOExceptionInterruptedExceptionpublic String popen(hudson.FilePath repository, hudson.model.TaskListener listener, int timeout, hudson.util.ArgumentListBuilder args) throws IOException, InterruptedException
IOExceptionInterruptedException@CheckForNull public String branch(String... extraArgs) throws IOException, InterruptedException
IOExceptionInterruptedException@CheckForNull public String branches(String[] extraArgs) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String update(String revision) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String updateClean(String revision) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String clean() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String[] out() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String commit(String message, String username, String... extraArgs) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String merge(String revision) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String push(String[] extraArgs) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String strip(String[] extraArgs) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String pullChanges() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String pullChanges(String otherRepo) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String pullChanges(String otherRepo, String branch) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String add(String filename, String content) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2004-2015. All Rights Reserved.