if (repository.getProviderRepository() instanceof SvnScmProviderRepository) {
SvnInfoScmResult scmResult = info( repository, new ScmFileSet( scmDirectory ) );
checkResult( scmResult );
SvnInfoItem info = (SvnInfoItem) scmResult.getInfoItems().get( 0 );
if ( useLastCommittedRevision )
{
return info.getLastChangedRevision();
}
return info.getRevision();
} else if (repository.getProviderRepository() instanceof GitScmProviderRepository) {
GitRevParseCommand command=new GitRevParseCommand();
command.setLogger(getLogger());