throws ScmException
{
// In Perforce, there is no difference between update and checkout.
// Here we just run the checkout command and map the result onto an
// UpdateScmResult.
PerforceCheckOutCommand command = new PerforceCheckOutCommand();
command.setLogger( getLogger() );
CommandParameters params = new CommandParameters();
params.setScmVersion( CommandParameter.SCM_VERSION, scmVersion );
CheckOutScmResult cosr = (CheckOutScmResult) command.execute( repo, files, params );
if ( !cosr.isSuccess() )
{
return new UpdateScmResult( cosr.getCommandLine(), cosr.getProviderMessage(), cosr.getCommandOutput(),
false );
}