SVNRepository repos = createRepository(url, null, pegRevision, revision);;
url = repos.getLocation();
long revNum = getRevisionNumber(revision, repos, null);
SVNDirEntry rootEntry = null;
try {
rootEntry = repos.info("", revNum);
} catch (SVNException e) {
if (e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_IMPLEMENTED) {
// for svnserve older then 1.2.0
if (repos.getLocation().equals(repos.getRepositoryRoot(true))) {
rootEntry = new SVNDirEntry(url, "", SVNNodeKind.DIR, -1, false, -1, null, null);