private String getUUIDFromPath (SVNWCAccess wcAccess, File path) throws SVNException { SVNEntry entry = wcAccess.getEntry(path, true); if (entry == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.ENTRY_NOT_FOUND, "Can''t find entry for ''{0}''", path); SVNErrorManager.error(err); } String uuid = null; if (entry.getUUID() != null) { uuid = entry.getUUID(); } else if (entry.getURL() != null) { SVNRepository repos = createRepository(entry.getSVNURL(), false); uuid = repos.getRepositoryUUID(true); } else { if (wcAccess.isWCRoot(path)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.ENTRY_MISSING_URL, "''{0}'' has no URL", path); SVNErrorManager.error(err); } uuid = getUUIDFromPath(wcAccess, path.getParentFile()); } return uuid; }
SVNRepository repository = createRepository(topURL, true); if (!dstURL.equals(repository.getRepositoryRoot(true)) && srcURL.getPath().startsWith(dstURL.getPath() + "/")) { isResurrect = true; topURL = topURL.removePathTail(); repository = createRepository(topURL, true);
dstTarget = SVNEncodingUtil.uriDecode(dstTarget); SVNRepository repository = createRepository(dstAnchorURL, true); SVNNodeKind dstKind = repository.checkPath(dstTarget, -1); if (dstKind == SVNNodeKind.DIR) { dstURL = SVNURL.parseURIEncoded(SVNCommitUtil.translateCommitables(items, commitables)); repository = createRepository(dstURL, true); SVNCommitMediator mediator = new SVNCommitMediator(commitables); tmpFiles = mediator.getTmpFiles();
SVNRepository repository = createRepository(srcURL, true); if (!srcRevision.isValid()) { srcRevision = SVNRevision.HEAD;