}
TfsCommand command = null;
// tf history takes only one file arg
while ( iter.hasNext() )
{
TfsChangeLogConsumer out = new TfsChangeLogConsumer( getLogger() );
ErrorStreamConsumer err = new ErrorStreamConsumer();
command = createCommand( r, f, ( (File) iter.next() ) );
int status = command.execute( out, err );
if ( status != 0 || ( !out.hasBeenFed() && err.hasBeenFed() ) )
return new ChangeLogScmResult( command.getCommandString(), "Error code for TFS changelog command - "
+ status, err.getOutput(), false );
changeLogs.addAll( out.getLogs() );
}
return new ChangeLogScmResult( command.getCommandString(), new ChangeLogSet( changeLogs, startDate, endDate ) );
}