boolean (final Collection<FilePath> roots) { // TODO: Check if this logic is useful and needs to be uncommented. // TODO: Also Check if setXxx() in UpdateRootInfo are thread safe. /*final SvnConfiguration configuration = SvnConfiguration.getInstance(myVcs.getProject()); final Map<File,UpdateRootInfo> map = configuration.getUpdateInfosMap(); try { for (FilePath root : roots) { final File ioFile = root.getIOFile(); final UpdateRootInfo value = map.get(ioFile); if (value == null) { continue; } final Url url = value.getUrl(); if (url != null && (! url.equals(getSourceUrl(myVcs, root.getIOFile())))) { // switch final Revision updateRevision = correctRevision(value); return true; // should be turned on after bugfix with copy url //return checkAncestry(ioFile, url, updateRevision); } } } catch (SvnBindException e) { Messages.showErrorDialog(myVcs.getProject(), e.getMessage(), SvnBundle.message("switch.target.problem.title")); return false; }*/ return true; }