mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[file-history] add default implementation to VcsHistorySession#getHistoryAsTreeProvider
GitOrigin-RevId: 8d9fab7cf1d9570c10f3646b9c91dcd052b514b1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f03fef934b
commit
15f3a280d3
@@ -24,10 +24,12 @@ public interface VcsHistorySession {
|
||||
VcsRevisionNumber getCurrentRevisionNumber();
|
||||
boolean isCurrentRevision(VcsRevisionNumber rev);
|
||||
boolean shouldBeRefreshed();
|
||||
|
||||
boolean isContentAvailable(VcsFileRevision revision);
|
||||
@Nullable
|
||||
HistoryAsTreeProvider getHistoryAsTreeProvider();
|
||||
// i.e. is history for local file (opposite - history for some URL)
|
||||
boolean hasLocalSource();
|
||||
|
||||
@Nullable
|
||||
default HistoryAsTreeProvider getHistoryAsTreeProvider() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,11 +180,6 @@ public final class GitHistoryProvider implements VcsHistoryProviderEx,
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public HistoryAsTreeProvider getHistoryAsTreeProvider() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VcsHistorySession copy() {
|
||||
return createSession(myFilePath, getRevisionList(), getCurrentRevisionNumber());
|
||||
|
||||
@@ -118,11 +118,6 @@ public class HgHistoryProvider implements VcsHistoryProvider {
|
||||
return new HgWorkingCopyRevisionsCommand(myProject).parents(vcsRoot, filePath).first;
|
||||
}
|
||||
|
||||
@Override
|
||||
public HistoryAsTreeProvider getHistoryAsTreeProvider() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public VcsHistorySession copy() {
|
||||
return createAppendableSession(vcsRoot, filePath, getRevisionList(), getCurrentRevisionNumber());
|
||||
|
||||
@@ -30,11 +30,6 @@ public class SvnHistorySession extends VcsAbstractHistorySession {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public HistoryAsTreeProvider getHistoryAsTreeProvider() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public VcsRevisionNumber calcCurrentRevisionNumber() {
|
||||
|
||||
Reference in New Issue
Block a user