public void linkPath(SVNURL url, String path, String lockToken, long revision, boolean startEmpty) throws SVNException { assertValidRevision(revision); SVNURL reposRootURL = getRepositoryRoot(false); if (url.toDecodedString().indexOf(reposRootURL.toDecodedString()) == -1) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_ILLEGAL_URL, "''{0}''\nis not the same repository as\n''{1}''", new Object[] { url, reposRootURL }); SVNErrorManager.error(err); } String reposLinkPath = url.toDecodedString().substring(reposRootURL.toDecodedString().length()); if ("".equals(reposLinkPath)) { reposLinkPath = "/"; } myReporterContext.writePathInfoToReportFile(path, reposLinkPath, lockToken, revision, startEmpty); }
public void linkPath(SVNURL url, String path, String lockToken, long revision, SVNDepth depth, boolean startEmpty) throws SVNException { assertValidRevision(revision); if (depth == SVNDepth.EXCLUDE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.REPOS_BAD_ARGS, "Depth 'exclude' not supported for link"); SVNErrorManager.error(err, SVNLogType.FSFS); } SVNURL reposRootURL = getRepositoryRoot(false); if (url.toDecodedString().indexOf(reposRootURL.toDecodedString()) == -1) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_ILLEGAL_URL, "''{0}''\nis not the same repository as\n''{1}''", new Object[] { url, reposRootURL }); SVNErrorManager.error(err, SVNLogType.FSFS); } String reposLinkPath = url.toDecodedString().substring(reposRootURL.toDecodedString().length()); if ("".equals(reposLinkPath)) { reposLinkPath = "/"; } myReporterContext.writePathInfoToReportFile(path, reposLinkPath, lockToken, revision, startEmpty, depth); }
public void linkPath(SVNURL url, String path, String lockToken, long revision, SVNDepth depth, boolean startEmpty) throws SVNException { assertValidRevision(revision); if (depth == SVNDepth.EXCLUDE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.REPOS_BAD_ARGS, "Depth 'exclude' not supported for link"); SVNErrorManager.error(err, SVNLogType.FSFS); } SVNURL reposRootURL = getRepositoryRoot(false); if (url.toDecodedString().indexOf(reposRootURL.toDecodedString()) == -1) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_ILLEGAL_URL, "''{0}''\nis not the same repository as\n''{1}''", new Object[] { url, reposRootURL }); SVNErrorManager.error(err, SVNLogType.FSFS); } String reposLinkPath = url.toDecodedString().substring(reposRootURL.toDecodedString().length()); if ("".equals(reposLinkPath)) { reposLinkPath = "/"; } myReporterContext.writePathInfoToReportFile(path, reposLinkPath, lockToken, revision, startEmpty, depth); }
public void linkPath(SVNURL url, String path, String lockToken, long revision, SVNDepth depth, boolean startEmpty) throws SVNException { assertValidRevision(revision); if (depth == SVNDepth.EXCLUDE) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.REPOS_BAD_ARGS, "Depth 'exclude' not supported for link"); SVNErrorManager.error(err, SVNLogType.FSFS); } SVNURL reposRootURL = getRepositoryRoot(false); if (url.toDecodedString().indexOf(reposRootURL.toDecodedString()) == -1) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_ILLEGAL_URL, "''{0}''\nis not the same repository as\n''{1}''", new Object[] { url, reposRootURL }); SVNErrorManager.error(err, SVNLogType.FSFS); } String reposLinkPath = url.toDecodedString().substring(reposRootURL.toDecodedString().length()); if ("".equals(reposLinkPath)) { reposLinkPath = "/"; } myReporterContext.writePathInfoToReportFile(path, reposLinkPath, lockToken, revision, startEmpty, depth); }
SVNURL reposRootURL = getRepositoryRoot(false); switchURL, getRepositoryRoot(false) }); SVNErrorManager.error(err);
SVNURL reposRootURL = getRepositoryRoot(false); switchURL, getRepositoryRoot(false) }); SVNErrorManager.error(err, SVNLogType.FSFS);
SVNURL reposRootURL = getRepositoryRoot(false); switchURL, getRepositoryRoot(false) }); SVNErrorManager.error(err, SVNLogType.FSFS);
SVNURL reposRootURL = getRepositoryRoot(false); switchURL, getRepositoryRoot(false) }); SVNErrorManager.error(err, SVNLogType.FSFS);
SVNDirEntry dirEntry = new SVNDirEntry(entryURL, getRepositoryRoot(false), repEntry.getName(), kind, size, hasProps, revision, lastCommitDate, lastAuthor, log); dirEntry.setRelativePath(repEntry.getName()); return dirEntry;
SVNDirEntry dirEntry = new SVNDirEntry(entryURL, getRepositoryRoot(false), repEntry.getName(), kind, size, hasProps, revision, lastCommitDate, lastAuthor, log); dirEntry.setRelativePath(repEntry.getName()); return dirEntry;
SVNDirEntry dirEntry = new SVNDirEntry(entryURL, getRepositoryRoot(false), repEntry.getName(), kind, size, hasProps, revision, lastCommitDate, lastAuthor, log); dirEntry.setRelativePath(repEntry.getName()); return dirEntry;