try
{
ScmRepository repository = getScmRepository();
StatusScmResult result = getScmManager().status( repository, getFileSet() );
checkResult( result );
File baseDir = getFileSet().getBasedir();
// Determine the maximum length of the status column
int maxLen = 0;
for ( ScmFile file : result.getChangedFiles() )
{
maxLen = Math.max( maxLen, file.getStatus().toString().length() );
}
for ( ScmFile file : result.getChangedFiles() )
{
// right align all of the statuses
getLog().info(
StringUtils.leftPad( file.getStatus().toString(), maxLen ) + " status for "
+ getRelativePath( baseDir, file.getPath() ) );