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
IOException
InterruptedException
public String popen(hudson.FilePath repository, hudson.model.TaskListener listener, int timeout, hudson.util.ArgumentListBuilder args, int[] returnCodes) throws IOException, InterruptedException
IOException
InterruptedException
public 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.IOException
InterruptedException
public String popen(hudson.FilePath repository, hudson.model.TaskListener listener, int timeout, hudson.util.ArgumentListBuilder args) throws IOException, InterruptedException
IOException
InterruptedException
@CheckForNull public String branch(String... extraArgs) throws IOException, InterruptedException
IOException
InterruptedException
@CheckForNull public String branches(String[] extraArgs) throws IOException, InterruptedException
IOException
InterruptedException
public String update(String revision) throws IOException, InterruptedException
IOException
InterruptedException
public String updateClean(String revision) throws IOException, InterruptedException
IOException
InterruptedException
public String clean() throws IOException, InterruptedException
IOException
InterruptedException
public String[] out() throws IOException, InterruptedException
IOException
InterruptedException
public String commit(String message, String username, String... extraArgs) throws IOException, InterruptedException
IOException
InterruptedException
public String merge(String revision) throws IOException, InterruptedException
IOException
InterruptedException
public String push(String[] extraArgs) throws IOException, InterruptedException
IOException
InterruptedException
public String strip(String[] extraArgs) throws IOException, InterruptedException
IOException
InterruptedException
public String pullChanges() throws IOException, InterruptedException
IOException
InterruptedException
public String pullChanges(String otherRepo) throws IOException, InterruptedException
IOException
InterruptedException
public String pullChanges(String otherRepo, String branch) throws IOException, InterruptedException
IOException
InterruptedException
public String add(String filename, String content) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2004-2015. All Rights Reserved.