ContentRevision (@NotNull VcsRevisionNumber revisionNumber, @NotNull VirtualFile selectedFile) { FilePath filePath = VcsUtil.getFilePath(selectedFile); Revision revision = ((SvnRevisionNumber)revisionNumber).getRevision(); if (!Revision.HEAD.equals(revision) && revisionNumber.equals(getCurrentRevision(selectedFile))) { return SvnContentRevision.createBaseRevision(myVcs, filePath, revision); } // not clear why we need it, with remote check.. Status svnStatus = getFileStatus(virtualToIoFile(selectedFile), false); return svnStatus != null && revision.equals(svnStatus.getRevision()) ? SvnContentRevision.createBaseRevision(myVcs, filePath, revision) : SvnContentRevision.createRemote(myVcs, filePath, revision); }