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(Commandline cl) |
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 loggerworkingDir
- the working dirworkingbranchName
- the working branch nameScmException
- on outgoing command errorpublic static String maskPassword(Commandline cl)
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.