private SubversionRepoUUIDAndRootPath remoteUUIDAndRootPathFromCacheOrFromSVN(Job job, SCM scm, ModuleLocation moduleLocation, String urlFromConfiguration) throws SVNException { SubversionRepoUUIDAndRootPath uuidAndRootPath = null; for (Map.Entry<String, UUID> e : remoteUUIDCache.entrySet()) { String remoteRepoRootURL = e.getKey(); String remoteRepoRootURLWithSlash = remoteRepoRootURL + "/"; if (urlFromConfiguration.startsWith(remoteRepoRootURLWithSlash) || urlFromConfiguration.equals(remoteRepoRootURL)) { UUID uuid = e.getValue(); String rootPath = SVNURL.parseURIDecoded(e.getKey()).getPath(); uuidAndRootPath = new SubversionRepoUUIDAndRootPath(uuid, rootPath); LOGGER.finer("Using cached uuid for module location " + urlFromConfiguration + " of job "+ job); break; } } if (uuidAndRootPath == null) { if (LOGGER.isLoggable(FINER)) { LOGGER.finer("Could not find " + urlFromConfiguration + " in " + remoteUUIDCache.keySet()); } UUID remoteUUID = moduleLocation.getUUID(job, scm); SVNURL repositoryRoot = moduleLocation.getRepositoryRoot(job, scm); remoteUUIDCache.put(repositoryRoot.toString(), remoteUUID); uuidAndRootPath = new SubversionRepoUUIDAndRootPath(remoteUUID, repositoryRoot.getPath()); } return uuidAndRootPath; }
@Deprecated public SVNURL getRepositoryRoot(AbstractProject context) throws SVNException { return getRepositoryRoot(context, context.getScm()); }
String n = loc.getRepositoryRoot(p).getPath(); if(!m.startsWith(n)) continue; // repository root should be a subpath of the module path, but be defensive
String n = loc.getRepositoryRoot(p).getPath(); if (!m.startsWith(n)) { continue; // repository root should be a subpath of the module path, but be defensive