Interface VcsRootInstanceEx

    • Method Detail

      • isSubrepo

        boolean isSubrepo()
        Returns:
        true if this root is a subrepository of some other root
      • getVcsBranchesContainingModId

        @NotNull
        Set<String> getVcsBranchesContainingModId​(long modId)
      • addCollectChangesProgress

        void addCollectChangesProgress​(@NotNull
                                       String progressMessage)
      • getCollectChangesProgress

        @NotNull
        List<String> getCollectChangesProgress()
      • getDefaultBranchName

        @Nullable
        String getDefaultBranchName()
        For DAG based VCS roots returns default branch name if it is known. The default branch name is known if the last used repository state is not empty.
        Returns:
        see above
      • setPollingMode

        void setPollingMode​(boolean pollingMode)
      • sameParameters

        boolean sameParameters​(@NotNull
                               Map<String,​String> paramsForComparison)
        Parameters:
        paramsForComparison -
        Returns:
        true if this VCS root instance has the same set of parameters as the passed map
      • getMetrics

        VcsDurationMetrics getMetrics()
        TC collects timing for the last checking for changes operations to show it on Vcs Status tab
        Since:
        2018.1.1
      • resetPollingStateCache

        void resetPollingStateCache()
        Resets internal polling state cache so that next access to it's fields fetched them from the database
      • shouldStoreParentRevisions

        boolean shouldStoreParentRevisions()
        Returns:
        true if parent revisions should be stored into the database when a newly detected VCS commit is persisted
      • withConnectedDAG

        <R> R withConnectedDAG​(@NotNull
                               Predicate<VcsRootInstance> vcsRootPredicate,
                               @NotNull
                               Function<DAG<Long>,​R> function)
        Calls provided function with a DAG which potentially can have VCS modifications belonging to different VCS root instances. The VCS root instances which can be used to connect DAGs should be accepted by the specified filter. The value returned by the function is also the result of this method.
        Parameters:
        vcsRootPredicate -
        Returns:
        Since:
        2024.12
      • isConnectedDAGsTraversingEnabled

        boolean isConnectedDAGsTraversingEnabled()