Hi,
I’m currently use the code below to get the vcs history:
VcsHistoryProvider historyProvider = vcs.getVcsHistoryProvider();
if (historyProvider == null) {
// Handle the case when there is no history provider
return;
}
FilePath filePath = VcsUtil.getFilePath(file.getPath());
Editor finalEditor = editor;
ApplicationManager.getApplication().executeOnPooledThread(() → {
VcsHistorySession historySession = null;
try {
historySession = historyProvider.createSessionFor(filePath);
} catch (VcsException ex) {}
List revisions = historySession.getRevisionList();
});
How to get the local history of the file?
Thank you very much for any help !