Interface VcsModificationEx

    • Method Detail

      • getRelatedConfigurationIds

        @NotNull
        List<String> getRelatedConfigurationIds​(boolean ignoreOverridden)
        Returns configurations ids this modification is related to.
        Parameters:
        ignoreOverridden - if true does not return configurations where this modification was attached via overridden root
        Returns:
        sorted list of build configuration ids
      • isRelatedTo

        boolean isRelatedTo​(@NotNull
                            SBuildType buildType,
                            boolean ignoreOverridden)
      • isRelatedTo

        boolean isRelatedTo​(@NotNull
                            SBuildType buildType)
        Parameters:
        buildType - build configuration
        Returns:
        true if this modification is attached to specified build configuration.
        Since:
        7.1
      • isRelatedTo

        boolean isRelatedTo​(@NotNull
                            SBuildType buildType,
                            @NotNull
                            Predicate<RelationType> relationPredicate)
        Returns true if this modification has a relation accepted by the specified relation predicate to the given buildType
        Parameters:
        buildType - buildType of interest
        relationPredicate - relation predicate
        Returns:
        see above
        Since:
        10.0.5
      • getRelationTypes

        @NotNull
        List<RelationType> getRelationTypes()
        Returns:
        all types of relations of build configurations associated with this change
        Since:
        2020.2
      • isRelatedTo

        boolean isRelatedTo​(int parentNum,
                            @NotNull
                            SBuildType buildType,
                            @NotNull
                            Predicate<RelationType> relationPredicate)
        Returns true if the edge from the parentNum-th parent to this commit has a relation to the specified buildType accepted by the given predicate
      • resetRelatedConfigurations

        void resetRelatedConfigurations()
      • detachedFromConfigurations

        void detachedFromConfigurations​(@NotNull
                                        Collection<String> btIds)
      • getFilteredChanges

        @NotNull
        List<FilteredVcsChange> getFilteredChanges​(@NotNull
                                                   CheckoutRules rules)
        Returns list of changed files filtered according to given checkout rules.
        Parameters:
        rules - checkout rules to filter by.
        Returns:
        list of filtered changed files.
      • getReachableVcsBranches

        @NotNull
        Set<String> getReachableVcsBranches()
      • consumeRelations

        void consumeRelations​(@NotNull
                              BiConsumer<String,​RelationType> consumer)
        Calls the specified consumer, pass it buildType internalId and relation as arguments
        Parameters:
        consumer - consumer to call
      • relatedConfigurationsLoaded

        boolean relatedConfigurationsLoaded()
        Returns:
        true if build configurations related to this change are loaded into the change internal cache
      • getRelatedBuildTypeIds

        BuildTypeIds getRelatedBuildTypeIds()
      • isDuplicateOf

        boolean isDuplicateOf​(@NotNull
                              SVcsModification modification)
        Parameters:
        modification -
        Returns:
        true if this modification is a duplicate of another one
        Since:
        2020.1
      • getCommiterName

        @NotNull
        String getCommiterName()
        Returns user who last updated this modification (e.g. via git rebase, amend, patch apply) unlike Modification.getUserName(), which returns user who initially authored the modification.
        Returns:
        name of the user who last updated this modification (according to information from VCS system)
        Since:
        2020.1.3