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());
Hi @ilia.shulgin, thanks for your response!
I am getting such error when I tried to call LocalHistoryFacade.collectChanges in Pycharm 2024.3, but it works well in PyCharm 2024.2
You are tight, signature was changed. However, this method simply calls com.intellij.history.core.LocalHistoryFacadeKt#collectChanges(com.intellij.history.core.LocalHistoryFacade, java.lang.String, com.intellij.history.core.ChangeProcessor) passing ChangeProcessorBase there. However, its signature was also changed
Is there a way to support version 2024.1 as well? I mean, if my platformVersion=2024.1.1, will I be able to use localChanges for 241+ versions without creating multiple builds? (Supporting multiple builds is very costly in terms of development time)
@drozdov.gleb.spb sorry, i had to mention it. You are right, it will be blocked by the plugin verifier.
Sadly, there is no option to align API for 241/242/243 and 251.
So the best solution is having 2 builds - for 241/242 using collectChanges with patternString: String? and 243+ using filter: HistoryPathFilter?.
@ilia.shulgin
Hi, when I set platformVersion=251.23774.200 with intellij-gradle-plugin 2.4.0
the com.intellij.history.core and com.intellij.history.integration is no longer exists.
How to solve this? Thank you very much!