public final class HgUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
differentOutgoingBranchFound(ScmLogger logger,
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,
ScmLogger logger,
File workingDir,
String[] cmdAndArgs) |
static String[] |
expandCommandLine(String[] cmdAndArgs,
ScmFileSet additionalFiles) |
static String |
getCurrentBranchName(ScmLogger logger,
File workingDir) |
static int |
getCurrentRevisionNumber(ScmLogger logger,
File workingDir) |
static String |
maskPassword(org.codehaus.plexus.util.cli.Commandline cl) |
public static final String DEFAULT
public static ScmResult execute(HgConsumer consumer, ScmLogger logger, 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(ScmLogger logger, File workingDir) throws ScmException
ScmException
public static String getCurrentBranchName(ScmLogger logger, File workingDir) throws ScmException
ScmException
public static boolean differentOutgoingBranchFound(ScmLogger logger, File workingDir, String workingbranchName) throws ScmException
logger
- the logger31workingDir
- the working dirworkingbranchName
- the working branch nameScmException
- on outgoing command errorpublic static String maskPassword(org.codehaus.plexus.util.cli.Commandline cl)
Copyright © 2003–2021 The Apache Software Foundation. All rights reserved.