mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
LH: additional storage validation in internal mode
This commit is contained in:
@@ -39,6 +39,7 @@ public abstract class LocalHistory {
|
||||
|
||||
public abstract Label putUserLabel(Project p, @NotNull String name);
|
||||
|
||||
@Nullable
|
||||
public abstract byte[] getByteContent(VirtualFile f, FileRevisionTimestampComparator c);
|
||||
|
||||
public abstract boolean isUnderControl(VirtualFile f);
|
||||
|
||||
@@ -123,6 +123,9 @@ public class LocalHistoryImpl extends LocalHistory implements ApplicationCompone
|
||||
fm.removeVirtualFileManagerListener(myEventDispatcher);
|
||||
CommandProcessor.getInstance().removeCommandListener(myEventDispatcher);
|
||||
|
||||
|
||||
validateStorage();
|
||||
LocalHistoryLog.LOG.info("Purging local history...");
|
||||
myChangeList.purgeObsolete(period);
|
||||
validateStorage();
|
||||
|
||||
@@ -178,6 +181,7 @@ public class LocalHistoryImpl extends LocalHistory implements ApplicationCompone
|
||||
};
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public byte[] getByteContent(final VirtualFile f, final FileRevisionTimestampComparator c) {
|
||||
if (!isInitialized()) return null;
|
||||
|
||||
Reference in New Issue
Block a user