commitCmd = HgUtils.expandCommandLine( commitCmd, fileSet );
ScmResult result =
HgUtils.execute( new HgConsumer( getLogger() ), getLogger(), fileSet.getBasedir(), commitCmd );
// Push to parent branch if any
HgScmProviderRepository repository = (HgScmProviderRepository) repo;
if ( repo.isPushChanges() )
{
if ( !repository.getURI().equals( fileSet.getBasedir().getAbsolutePath() ) )
{
String[] pushCmd = new String[]{ HgCommandConstants.PUSH_CMD,
differentOutgoingBranch ? HgCommandConstants.REVISION_OPTION + branchName : null,
repository.getURI() };
result = HgUtils.execute( new HgConsumer( getLogger() ), getLogger(), fileSet.getBasedir(), pushCmd );
}
return new CheckInScmResult( commitedFiles, result );