}
SVNRepository repos = createRepository(url, null, null, pegRevision, revision, null);
url = repos.getLocation();
long revNumber = getRevisionNumber(revision, repos, null);
SVNNodeKind targetNodeKind = repos.checkPath("", revNumber);
if (targetNodeKind == SVNNodeKind.FILE) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNSUPPORTED_FEATURE, "URL ''{0}'' refers to a file, not a directory", url);
SVNErrorManager.error(err, SVNLogType.WC);
} else if (targetNodeKind == SVNNodeKind.NONE) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_ILLEGAL_URL, "URL ''{0}'' doesn''t exist", url);