private byte[] getBaseUrl() throws UnsupportedEncodingException, SVNException { if (baseUrl == null) { if (locationUrl != null) { baseUrl = locationUrl.removePathTail().toString().getBytes("UTF-8"); } } return baseUrl; }
private void addURLParents(List targets, SVNURL url) throws SVNException { SVNURL parentURL = url.removePathTail(); SVNRepository repos = createRepository(parentURL, null, null, true); SVNNodeKind kind = repos.checkPath("", SVNRepository.INVALID_REVISION); if (kind == SVNNodeKind.NONE) { addURLParents(targets, parentURL); } targets.add(url); }
private void addURLParents(List targets, SVNURL url) throws SVNException { SVNURL parentURL = url.removePathTail(); SVNRepository repos = createRepository(parentURL, null, null, true); SVNNodeKind kind = repos.checkPath("", SVNRepository.INVALID_REVISION); if (kind == SVNNodeKind.NONE) { addURLParents(targets, parentURL); } targets.add(url); }
private void addURLParents(List targets, SVNURL url) throws SVNException { SVNURL parentURL = url.removePathTail(); SVNRepository repos = createRepository(parentURL, null, null, true); SVNNodeKind kind = repos.checkPath("", SVNRepository.INVALID_REVISION); if (kind == SVNNodeKind.NONE) { addURLParents(targets, parentURL); } targets.add(url); }
private void addURLParents(List<SVNURL> targets, SVNURL url) throws SVNException { SVNURL parentURL = url.removePathTail(); SVNRepository repository = getRepositoryAccess().createRepository(parentURL, null, true); SVNNodeKind kind = repository.checkPath("", SVNRepository.INVALID_REVISION); if (kind == SVNNodeKind.NONE) { addURLParents(targets, parentURL); } targets.add(url); } }
private Collection<SVNURL> findMissingParents(SVNURL targetURL, SVNRepository repository) throws SVNException { SVNNodeKind kind = repository.checkPath("", -1); Collection<SVNURL> parents = new ArrayList<SVNURL>(); while (kind == SVNNodeKind.NONE) { parents.add(targetURL); targetURL = targetURL.removePathTail(); repository.setLocation(targetURL, false); kind = repository.checkPath("", -1); } if (kind != SVNNodeKind.DIR) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_ALREADY_EXISTS, "Path ''{0}'' already exists, but it is not a directory", targetURL); SVNErrorManager.error(err, SVNLogType.WC); } return parents; }
SvnCommitItem rootItem = (SvnCommitItem) itemsMap.get(baseURL); if (rootItem.getKind() != SVNNodeKind.DIR) { baseURL = baseURL.removePathTail(); } else if (rootItem.getKind() == SVNNodeKind.DIR && (rootItem.hasFlag(SvnCommitItem.ADD) || rootItem.hasFlag(SvnCommitItem.COPY) || rootItem.hasFlag(SvnCommitItem.LOCK))) { baseURL = baseURL.removePathTail();
SVNCommitItem root = (SVNCommitItem) itemsMap.get(baseURL); if (root.getKind() != SVNNodeKind.DIR) { baseURL = baseURL.removePathTail(); } else if (root.getKind() == SVNNodeKind.DIR && (root.isAdded() || root.isDeleted() || root.isCopied() || root.isLocked())) { baseURL = baseURL.removePathTail();
SVNCommitItem root = (SVNCommitItem) itemsMap.get(baseURL); if (root.getKind() != SVNNodeKind.DIR) { baseURL = baseURL.removePathTail(); } else if (root.getKind() == SVNNodeKind.DIR && (root.isAdded() || root.isDeleted() || root.isCopied() || root.isLocked())) { baseURL = baseURL.removePathTail();
SVNCommitItem root = (SVNCommitItem) itemsMap.get(baseURL); if (root.getKind() != SVNNodeKind.DIR) { baseURL = baseURL.removePathTail(); } else if (root.getKind() == SVNNodeKind.DIR && (root.isAdded() || root.isDeleted() || root.isCopied() || root.isLocked())) { baseURL = baseURL.removePathTail();
rootURL = rootURL.removePathTail(); List convertedPaths = new ArrayList(); String tail = SVNPathUtil.tail(rootURL.getURIEncodedPath()); rootURL = rootURL.removePathTail(); for (Iterator commitPaths = paths.iterator(); commitPaths.hasNext();) { String path = (String) commitPaths.next();
rootURL = rootURL.removePathTail();
private Map<String, Map<String, String>> getVersionedAutoProperties(SVNURL url, SVNURL reposRoot) throws SVNException { SVNProperties regularProperties; SVNURL parentUrl = url.removePathTail(); if (url.equals(reposRoot)) { return null; break; parentUrl = parentUrl.removePathTail();
String name = SVNPathUtil.tail(repos.getLocation().getPath()); SVNURL fileULR = repos.getLocation(); repos.setLocation(repos.getLocation().removePathTail(), false); Collection dirEntries = repos.getDir("", rev, null, (Collection) null);
private SVNCommitInfo singleRepositoryDelete(SVNRepository repository, SVNURL rootURL, List<String> paths) throws SVNException { if (paths.isEmpty()) { paths.add(SVNPathUtil.tail(rootURL.getURIEncodedPath())); rootURL = rootURL.removePathTail();
rootRelativePath = "/"; setLocation(getLocation().removePathTail(), false); final SVNProperties properties = new SVNProperties(); try {
if (!url.equals(reposRoot)) { String name = SVNPathUtil.tail(repos.getLocation().getPath()); repos.setLocation(repos.getLocation().removePathTail(), false); Collection dirEntries = repos.getDir("", rev, null, entryFields, (Collection) null); repos.setLocation(url, false);
long targetRevision = editor.getTargetRevision(); if (targetRevision >= 0 && !isIgnoreExternals() && depth.isRecursive()) { url = target == null ? url : url.removePathTail(); handleExternals(wcAccess, info.getAnchor().getRoot(), info.getOldExternals(), info.getNewExternals(), info.getDepths(), url, sourceRoot, depth, false, true);
File topDst = getCommonCopyDst(copyPairs); if (copyPairs.size() == 1) { topSrcUrl = topSrcUrl.removePathTail(); topDst = SVNFileUtil.getParentFile(topDst);
url = target == null ? url : url.removePathTail(); handleExternals(wcAccess, info.getAnchor().getRoot(), info.getOldExternals(), info.getNewExternals(), info.getDepths(), url, sourceRoot, depth, false, true);