project, IResource.DEPTH_INFINITE);
project, true);
    				public void run(IProgressMonitor pm) throws SVNException {    						String message;    						if (comment == null)    							message = Policy.bind("SVNProvider.initialImport"); //$NON-NLS-1$    						else    							message = comment;							try {								// create the remote dir								SVNUrl url = location.getUrl().appendPath(remoteDirName);								svnClient.mkdir(url, true, message);								try {									OperationManager.getInstance().beginOperation(svnClient, new OperationProgressNotifyListener(pm));									// checkout it so that we have .svn									svnClient.checkout(url, project.getLocation()											.toFile(), SVNRevision.HEAD, false);								} finally {									OperationManager.getInstance().endOperation();								}							} catch (SVNClientException e) {								throw new SVNException(										"Error while creating module: "												+ e.getMessage(), e);							}							// SharingWizard.doesSVNDirectoryExist calls							// getStatus on the folder which populates the							// status cache							// Need to clear the cache so we can get the new							// hasRemote value							SVNProviderPlugin.getPlugin()									.getStatusCacheManager().refreshStatus(											project, IResource.DEPTH_INFINITE);							try {								//Register it with Team. 								RepositoryProvider.map(project, SVNProviderPlugin										.getTypeId());							} catch (TeamException e) {								throw new SVNException("Cannot register project with svn provider",e);							}					}