diff --git a/platform/warmup/performanceTesting/src/com/intellij/warmup/WarmupCommandProvider.kt b/platform/warmup/performanceTesting/src/com/intellij/warmup/WarmupCommandProvider.kt index b0899f9fc75d..0f56f57d1ac1 100644 --- a/platform/warmup/performanceTesting/src/com/intellij/warmup/WarmupCommandProvider.kt +++ b/platform/warmup/performanceTesting/src/com/intellij/warmup/WarmupCommandProvider.kt @@ -7,6 +7,5 @@ import com.jetbrains.performancePlugin.CreateCommand class WarmupCommandProvider : CommandProvider { override fun getCommands() : Map = mapOf( Pair(BUILD_PREFIX, CreateCommand(::CheckWarmupBuildStatusCommand)), - Pair(GIT_LOG_PREFIX, CreateCommand(::CheckGitLogIndexedCommand)), ) } \ No newline at end of file diff --git a/platform/warmup/performanceTesting/resources/commandDescriptions/checkGitLogIndexedCommand.html b/plugins/git4idea/resources/commandDescriptions/checkGitLogIndexedCommand.html similarity index 100% rename from platform/warmup/performanceTesting/resources/commandDescriptions/checkGitLogIndexedCommand.html rename to plugins/git4idea/resources/commandDescriptions/checkGitLogIndexedCommand.html diff --git a/platform/warmup/performanceTesting/src/com/intellij/warmup/CheckGitLogIndexedCommand.kt b/plugins/git4idea/src/git4idea/performanceTesting/CheckGitLogIndexedCommand.kt similarity index 95% rename from platform/warmup/performanceTesting/src/com/intellij/warmup/CheckGitLogIndexedCommand.kt rename to plugins/git4idea/src/git4idea/performanceTesting/CheckGitLogIndexedCommand.kt index 899f523130a1..6f6538d35f14 100644 --- a/platform/warmup/performanceTesting/src/com/intellij/warmup/CheckGitLogIndexedCommand.kt +++ b/plugins/git4idea/src/git4idea/performanceTesting/CheckGitLogIndexedCommand.kt @@ -1,5 +1,5 @@ // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -package com.intellij.warmup +package git4idea.performanceTesting import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.components.serviceIfCreated @@ -17,6 +17,11 @@ import org.jetbrains.concurrency.toPromise * Checks that VCS log is fully indexed on project closing */ class CheckGitLogIndexedCommand(text: String, line: Int) : AbstractCommand(text, line) { + + companion object { + const val PREFIX = CMD_PREFIX + "checkGitLogIndexing" + } + override fun _execute(context: PlaybackContext): Promise { val callback = assertVcsLogIndexed() diff --git a/plugins/git4idea/src/git4idea/performanceTesting/GitCommandProvider.java b/plugins/git4idea/src/git4idea/performanceTesting/GitCommandProvider.java index e1fe71ba3b64..19b8fe34e0fd 100644 --- a/plugins/git4idea/src/git4idea/performanceTesting/GitCommandProvider.java +++ b/plugins/git4idea/src/git4idea/performanceTesting/GitCommandProvider.java @@ -16,7 +16,8 @@ public final class GitCommandProvider implements CommandProvider { Map.entry(GitCommitCommand.PREFIX, GitCommitCommand::new), Map.entry(FilterVcsLogTabCommand.PREFIX, FilterVcsLogTabCommand::new), Map.entry(GitShowVcsWidgetCommand.PREFIX, GitShowVcsWidgetCommand::new), - Map.entry(ShowFileAnnotationCommand.PREFIX, ShowFileAnnotationCommand::new) + Map.entry(ShowFileAnnotationCommand.PREFIX, ShowFileAnnotationCommand::new), + Map.entry(CheckGitLogIndexedCommand.PREFIX, CheckGitLogIndexedCommand::new) ); } }