protected Map getMergeInfo(SVNURL url, SVNRevision pegRevision, SVNURL repositoryRoot[]) throws SVNException { SVNRepository repository = null; try { repository = createRepository(url, null, null, true); long revisionNum = getRevisionNumber(pegRevision, repository, null); SVNURL reposRoot = repository.getRepositoryRoot(true); if (repositoryRoot != null && repositoryRoot.length > 0) { repositoryRoot[0] = reposRoot; } String relPath = getPathRelativeToRoot(null, url, reposRoot, null, null); return getReposMergeInfo(repository, relPath, revisionNum, SVNMergeInfoInheritance.INHERITED, false); } finally { if (repository != null) { repository.closeSession(); } } }
protected SVNLocationEntry getCopySource(File path, SVNURL url, SVNRevision revision) throws SVNException { long[] pegRev = { SVNRepository.INVALID_REVISION }; SVNRepository repos = createRepository(url, path, null, revision, revision, pegRev); SVNLocationEntry copyFromEntry = null; String targetPath = getPathRelativeToRoot(path, url, null, null, repos); CopyFromReceiver receiver = new CopyFromReceiver(targetPath); try { repos.log(new String[] { "" }, pegRev[0], 1, true, true, 0, false, new String[0], receiver); copyFromEntry = receiver.getCopyFromLocation(); } catch (SVNException e) { SVNErrorCode errCode = e.getErrorMessage().getErrorCode(); if (errCode == SVNErrorCode.FS_NOT_FOUND || errCode == SVNErrorCode.RA_DAV_REQUEST_FAILED) { return new SVNLocationEntry(SVNRepository.INVALID_REVISION, null); } throw e; } return copyFromEntry == null ? new SVNLocationEntry(SVNRepository.INVALID_REVISION, null) : copyFromEntry; }
protected SVNLocationEntry getCopySource(File path, SVNURL url, SVNRevision revision) throws SVNException { long[] pegRev = { SVNRepository.INVALID_REVISION }; SVNRepository repos = createRepository(url, path, null, revision, revision, pegRev); SVNLocationEntry copyFromEntry = null; String targetPath = getPathRelativeToRoot(path, url, null, null, repos); CopyFromReceiver receiver = new CopyFromReceiver(targetPath); try { repos.log(new String[] { "" }, pegRev[0], 1, true, true, 0, false, new String[0], receiver); copyFromEntry = receiver.getCopyFromLocation(); } catch (SVNException e) { SVNErrorCode errCode = e.getErrorMessage().getErrorCode(); if (errCode == SVNErrorCode.FS_NOT_FOUND || errCode == SVNErrorCode.RA_DAV_REQUEST_FAILED) { return new SVNLocationEntry(SVNRepository.INVALID_REVISION, null); } throw e; } return copyFromEntry == null ? new SVNLocationEntry(SVNRepository.INVALID_REVISION, null) : copyFromEntry; }
logHandler.sourceReposAbsPath = getPathRelativeToRoot(null, url2, reposRootURL, myWCAccess, null); logHandler.mergedRanges = new SVNMergeRangeList(new SVNMergeRange[0]); logHandler.operativeRanges = new SVNMergeRangeList(new SVNMergeRange[0]);
protected SVNLocationEntry getCopySource(File path, SVNURL url, SVNRevision revision) throws SVNException { long[] pegRev = { SVNRepository.INVALID_REVISION }; SVNRepository repos = createRepository(url, path, null, revision, revision, pegRev); SVNLocationEntry copyFromEntry = null; String targetPath = getPathRelativeToRoot(path, url, null, null, repos); CopyFromReceiver receiver = new CopyFromReceiver(targetPath); try { repos.log(new String[] { "" }, pegRev[0], 1, true, true, 0, false, new String[0], receiver); copyFromEntry = receiver.getCopyFromLocation(); } catch (SVNException e) { SVNErrorCode errCode = e.getErrorMessage().getErrorCode(); if (errCode == SVNErrorCode.FS_NOT_FOUND || errCode == SVNErrorCode.RA_DAV_REQUEST_FAILED) { return new SVNLocationEntry(SVNRepository.INVALID_REVISION, null); } throw e; } return copyFromEntry == null ? new SVNLocationEntry(SVNRepository.INVALID_REVISION, null) : copyFromEntry; }
Map adjustedTargetMergeInfo = null; String mergeInfoPath = getPathRelativeToRoot(null, primaryURL, sourceRootURL, null, repository); if (implicitSrcGap != null && child.myPreMergeMergeInfo != null) { SVNMergeRangeList explicitMergeInfoGapRanges = (SVNMergeRangeList) child.myPreMergeMergeInfo.get(mergeInfoPath);
Map adjustedTargetMergeInfo = null; String mergeInfoPath = getPathRelativeToRoot(null, primaryURL, sourceRootURL, null, repository); if (implicitSrcGap != null && child.myPreMergeMergeInfo != null) { SVNMergeRangeList explicitMergeInfoGapRanges = (SVNMergeRangeList) child.myPreMergeMergeInfo.get(mergeInfoPath);
String mergeInfoPath = getPathRelativeToRoot(null, primaryURL, sourceRootURL, null, null); myChildrenWithMergeInfo = getMergeInfoPaths(myChildrenWithMergeInfo, mergeInfoPath, parentEntry, sourceRootURL, revision1, revision2, honorMergeInfo, repository, depth);
String sourceReposRelPath = getPathRelativeToRoot(null, url2, null, null, repository); String targetReposRelPath = getPathRelativeToRoot(targetWCPath, null, wcReposRoot, null, repository);
String sourceReposRelPath = getPathRelativeToRoot(null, url2, null, null, repository); String targetReposRelPath = getPathRelativeToRoot(targetWCPath, null, wcReposRoot, null, repository);
String targetReposRelPath = getPathRelativeToRoot(targetWCPath, null, wcReposRoot, null, sourceRepository); if (sourceReposRelPath.length() == 0 || targetReposRelPath.length() == 0) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_NOT_READY_TO_MERGE,
String relativePath = getPathRelativeToRoot(null, primaryURL, repository.getLocation(), null, repository); if (relativePath.startsWith("/")) { relativePath = relativePath.substring(1);
String relativePath = getPathRelativeToRoot(null, primaryURL, repository.getLocation(), null, repository); if (relativePath.startsWith("/")) { relativePath = relativePath.substring(1);
String relativePath = getPathRelativeToRoot(null, primaryURL, repository.getLocation(), null, repository); if (relativePath.startsWith("/")) { relativePath = relativePath.substring(1);
boolean isSubtree, SVNEntry entry, SVNRepository repository) throws SVNException { SVNURL primaryURL = revision1 < revision2 ? url2 : url1; String mergeInfoPath = getPathRelativeToRoot(null, primaryURL, sourceRootURL, null, repository);
String mergeInfoPath = getPathRelativeToRoot(null, primaryURL, sourceRootURL, null, null); myChildrenWithMergeInfo = getMergeInfoPaths(myChildrenWithMergeInfo, mergeInfoPath, parentEntry, sourceRootURL, revision1, revision2, honorMergeInfo, repository, depth);
mergeInfoPath = getPathRelativeToRoot(null, primaryURL, sourceRootURL, null, null);
mergeInfoPath = getPathRelativeToRoot(null, primaryURL, sourceRootURL, null, null);
String mergeInfoPath = getPathRelativeToRoot(null, primaryURL, sourceRootURL, null, null); myChildrenWithMergeInfo = getMergeInfoPaths(myChildrenWithMergeInfo, mergeInfoPath, parentEntry, sourceRootURL, revision1, revision2, honorMergeInfo, repository, depth);
mergeInfoPath = getPathRelativeToRoot(null, primaryURL, sourceRootURL, null, null);