Search in sources :

Example 1 with SimplePropertyRevision

use of org.jetbrains.idea.svn.history.SimplePropertyRevision in project intellij-community by JetBrains.

the class SvnChangeProviderContext method createPropertyRevision.

@Nullable
private ContentRevision createPropertyRevision(@NotNull Change change, @NotNull File file, boolean isBeforeRevision) throws SVNException {
    FilePath path = ChangesUtil.getFilePath(change);
    ContentRevision contentRevision = isBeforeRevision ? change.getBeforeRevision() : change.getAfterRevision();
    SVNRevision revision = isBeforeRevision ? SVNRevision.BASE : SVNRevision.WORKING;
    return new SimplePropertyRevision(getPropertyList(myVcs, file, revision), path, getRevisionNumber(contentRevision));
}
Also used : FilePath(com.intellij.openapi.vcs.FilePath) SVNRevision(org.tmatesoft.svn.core.wc.SVNRevision) SimplePropertyRevision(org.jetbrains.idea.svn.history.SimplePropertyRevision) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

FilePath (com.intellij.openapi.vcs.FilePath)1 Nullable (org.jetbrains.annotations.Nullable)1 SimplePropertyRevision (org.jetbrains.idea.svn.history.SimplePropertyRevision)1 SVNRevision (org.tmatesoft.svn.core.wc.SVNRevision)1