SvnRepositoryContentRevision (final String path, final boolean isBeforeRevision) { final boolean knownAsDirectory = myKnownAsDirectories.contains(path); final FilePath localPath = getLocalPath(path, file -> { if (knownAsDirectory) return Boolean.TRUE; // list will be next myWithoutDirStatus.add(new Pair<>(myList.size(), isBeforeRevision)); return Boolean.FALSE; }); long revision = getRevision(isBeforeRevision); return localPath == null ? SvnRepositoryContentRevision.createForRemotePath(myVcs, myRepositoryRoot, path, knownAsDirectory, revision) : SvnRepositoryContentRevision.create(myVcs, myRepositoryRoot, path, localPath, revision); }