use of com.intellij.openapi.vcs.history.CurrentRevision in project intellij-community by JetBrains.
the class ShowDiffWithLocalFromHistoryAction method performAction.
@Override
protected void performAction(@NotNull Project project, @NotNull FileHistoryUi ui, @NotNull VcsFullCommitDetails detail, @NotNull AnActionEvent e) {
if (ChangeListManager.getInstance(project).isFreezedWithNotification(null))
return;
FilePath path = e.getRequiredData(VcsDataKeys.FILE_PATH);
VcsFileRevision revision = ui.createRevision(detail);
if (revision != null) {
StandardDiffFromHistoryHandler handler = new StandardDiffFromHistoryHandler();
handler.showDiffForTwo(project, path, revision, new CurrentRevision(notNull(path.getVirtualFile()), VcsRevisionNumber.NULL));
}
}
Aggregations