List<File> list = fileList;
updatedFiles = update( source, baseDestination, list );
// process deletions in repository
LocalScmMetadataUtils metadataUtils = new LocalScmMetadataUtils( getLogger() );
LocalScmMetadata originalMetadata = metadataUtils.readMetadata( baseDestination );
if ( originalMetadata != null )
{
LocalScmMetadata newMetadata = metadataUtils.buildMetadata( source );
for ( Iterator<String> it = originalMetadata.getRepositoryFileNames().iterator(); it.hasNext(); )
{
String filename = it.next();
if ( !newMetadata.getRepositoryFileNames().contains( filename ) )
{
File localFile = new File( baseDestination, filename );
if ( localFile.exists() )
{
localFile.delete();