throws APIException
{
// Setup the lock command
api.getLogger().debug( "Locking member: " + memberFile.getAbsolutePath() );
Command siLock = new Command( Command.SI, "lock" );
siLock.addOption( new Option( "revision", ":member" ) );
siLock.addOption( new Option( "cpid", cpid ) );
siLock.addOption( new Option( "cwd", memberFile.getParentFile().getAbsolutePath() ) );
siLock.addSelection( relativeName );
// Execute the lock command
return api.runCommand( siLock );