@Nullable final ScanMode scanMode,
final boolean collapseRevisions,
final boolean displayOnlyImpactingRevisions) {
graph.refreshInProgress = true;
final Project project = graph._project;
final FilePath filePath = graph._filePath;
new Task.Backgroundable(project, "Revision History", true, PerformInBackgroundOption.DEAF){
private FileRevisionHistory history;
private RevisionGraphModel graphModel;
private Exception myException;
@Override
public void run(@NotNull ProgressIndicator indicator) {
try {
SvnVcs svn = SvnVcs.getInstance(project);
if (scanMode != null) {
indicator.setText("Collecting revision history for file: " + filePath.getName());
history = new FileHistoryRetriever(svn, filePath.getVirtualFile())
.getFileHistory(scanMode, indicator);
} else {
history = graph.revisionHistory;
}
indicator.setText("Creating graph");