From fa90432b6ea7d5bef56721b266e7cb843b2aa0ba Mon Sep 17 00:00:00 2001 From: Dmitry Zhuravlev Date: Mon, 16 Sep 2024 14:24:06 +0200 Subject: [PATCH] [lvcs] make local history facade reachable only from local history to avoid unnecessary storage initialization (IJPL-161713) GitOrigin-RevId: 45e43537051c0ddc484163242df573a3b7900b94 --- platform/lvcs-impl/api-dump.txt | 10 ++++----- .../resources/intellij.platform.lvcs.impl.xml | 1 - .../history/core/LocalHistoryFacade.kt | 21 +++---------------- .../history/integration/LocalHistoryEx.kt | 10 +++++++++ .../history/integration/LocalHistoryImpl.kt | 12 +++++------ 5 files changed, 24 insertions(+), 30 deletions(-) create mode 100644 platform/lvcs-impl/src/com/intellij/history/integration/LocalHistoryEx.kt diff --git a/platform/lvcs-impl/api-dump.txt b/platform/lvcs-impl/api-dump.txt index edae107c8f3b..298f9ad84885 100644 --- a/platform/lvcs-impl/api-dump.txt +++ b/platform/lvcs-impl/api-dump.txt @@ -72,8 +72,6 @@ com.intellij.history.core.LabelImpl - a:getByteContent(com.intellij.history.core.tree.RootEntry,java.lang.String):com.intellij.history.ByteContent - a:getLabelChangeId():J c:com.intellij.history.core.LocalHistoryFacade -- sf:Companion:com.intellij.history.core.LocalHistoryFacade$Companion -- ():V - f:accept(com.intellij.history.core.changes.ChangeVisitor):V - f:addChangeInTests(com.intellij.history.core.changes.StructuralChange):V - f:addListener(com.intellij.history.core.LocalHistoryFacade$Listener,com.intellij.openapi.Disposable):V @@ -87,7 +85,6 @@ c:com.intellij.history.core.LocalHistoryFacade - bs:endChangeSet$default(com.intellij.history.core.LocalHistoryFacade,java.lang.String,com.intellij.history.ActivityId,I,java.lang.Object):V - f:forceBeginChangeSet():V - f:getChangeListInTests():com.intellij.history.core.ChangeList -- sf:getInstance():com.intellij.history.core.LocalHistoryFacade - f:moved(java.lang.String,java.lang.String):V - f:putLabelInTests(com.intellij.history.core.changes.PutLabelChange):V - f:putSystemLabel(java.lang.String,java.lang.String,I):com.intellij.history.core.LabelImpl @@ -97,8 +94,6 @@ c:com.intellij.history.core.LocalHistoryFacade - f:renamed(java.lang.String,java.lang.String):V - f:revertUpToChange(com.intellij.history.core.tree.RootEntry,J,java.lang.String,Z,Z):java.lang.String - f:revertUpToChangeSet(com.intellij.history.core.tree.RootEntry,J,java.lang.String,Z,Z):java.lang.String -f:com.intellij.history.core.LocalHistoryFacade$Companion -- f:getInstance():com.intellij.history.core.LocalHistoryFacade a:com.intellij.history.core.LocalHistoryFacade$Listener - ():V - changeAdded(com.intellij.history.core.changes.Change):V @@ -452,6 +447,11 @@ pf:com.intellij.history.integration.IdeaGateway$VersionedFilterData f:com.intellij.history.integration.LocalHistoryBundle - s:message(java.lang.String,java.lang.Object[]):java.lang.String - s:messagePointer(java.lang.String,java.lang.Object[]):java.util.function.Supplier +a:com.intellij.history.integration.LocalHistoryEx +- com.intellij.history.LocalHistory +- com.intellij.openapi.Disposable +- ():V +- a:getFacade():com.intellij.history.core.LocalHistoryFacade f:com.intellij.history.integration.revertion.DifferenceReverter - com.intellij.history.integration.revertion.Reverter - (com.intellij.openapi.project.Project,com.intellij.history.core.LocalHistoryFacade,com.intellij.history.integration.IdeaGateway,java.util.List,com.intellij.history.core.revisions.Revision):V diff --git a/platform/lvcs-impl/resources/intellij.platform.lvcs.impl.xml b/platform/lvcs-impl/resources/intellij.platform.lvcs.impl.xml index 1ce64323c644..c7cc475c2d66 100644 --- a/platform/lvcs-impl/resources/intellij.platform.lvcs.impl.xml +++ b/platform/lvcs-impl/resources/intellij.platform.lvcs.impl.xml @@ -81,7 +81,6 @@ -