*/
public class SubclipseUtils {
public static ISVNRepositoryLocation getRepositoryLocation(String url) {
SVNProviderPlugin provider = SVNProviderPlugin.getPlugin();
SVNRepositories repositories = provider.getRepositories();
ISVNRepositoryLocation location = null;
ISVNRepositoryLocation[] locations = repositories.getKnownRepositories(new NullProgressMonitor());
for(int i = 0; i < locations.length; i++ ) {
String currentUrl = locations[i].getUrl().toString();
if(url.startsWith(currentUrl)) {
if(location==null || currentUrl.length()>location.getUrl().toString().length())
location = locations[i];