public ScmProviderRepository makeProviderScmRepository( File path )
throws ScmRepositoryException, UnknownRepositoryStructure
{
if ( path == null || !path.isDirectory() )
{
throw new ScmRepositoryException( path.getAbsolutePath() + " isn't a valid directory." );
}
File bzrDir = new File( path, ".bzr" );
if ( !bzrDir.exists() )
{
throw new ScmRepositoryException( path.getAbsolutePath() + " isn't a bazaar directory." );
}
return makeProviderScmRepository( "file:///" + path.getAbsolutePath(), ':' );
}