ScmProvider provider = getScmManager().getProviderByUrl( getScmUrl() );
ScmProviderRepository repository = provider.makeProviderScmRepository( getRepositoryRoot() );
assertNotNull( repository );
CommandParameters commandParameters = new CommandParameters();
commandParameters.setInt( CommandParameter.SCM_SHORT_REVISION_LENGTH, 6 );
InfoScmResult result = provider.info( repository, new ScmFileSet( getRepositoryRoot() ), commandParameters );
assertNotNull( result );
assertEquals( "revision must be short, exactly 6 digits ", "cd3c0d",
result.getInfoItems().get( 0 ).getRevision() );
}