public final class HgUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
differentOutgoingBranchFound(File workingDir,
String workingbranchName)
Check if there are outgoing changes on a different branch.
|
static ScmResult |
execute(File workingDir,
String[] cmdAndArgs) |
static ScmResult |
execute(HgConsumer consumer,
File workingDir,
String[] cmdAndArgs) |
static String[] |
expandCommandLine(String[] cmdAndArgs,
ScmFileSet additionalFiles) |
static String |
getCurrentBranchName(File workingDir) |
static int |
getCurrentRevisionNumber(File workingDir) |
static String |
maskPassword(org.codehaus.plexus.util.cli.Commandline cl) |
public static final String DEFAULT
public static ScmResult execute(HgConsumer consumer, File workingDir, String[] cmdAndArgs) throws ScmException
ScmException
public static ScmResult execute(File workingDir, String[] cmdAndArgs) throws ScmException
ScmException
public static String[] expandCommandLine(String[] cmdAndArgs, ScmFileSet additionalFiles)
public static int getCurrentRevisionNumber(File workingDir) throws ScmException
ScmException
public static String getCurrentBranchName(File workingDir) throws ScmException
ScmException
public static boolean differentOutgoingBranchFound(File workingDir, String workingbranchName) throws ScmException
Method users should not stop the push on a negative return, instead, they should hg push -r(branch being released)
workingDir
- the working dirworkingbranchName
- the working branch nameScmException
- on outgoing command errorpublic static String maskPassword(org.codehaus.plexus.util.cli.Commandline cl)
Copyright © 2003–2024 The Apache Software Foundation. All rights reserved.