Interface VcsRepositoryConfigurationComparator
- All Known Implementing Classes:
VcsRepositoryConfigurationComparatorImpl
@Internal
public interface VcsRepositoryConfigurationComparator
Compares repository configurations in different contexts.
- Since:
- 5.14
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isTheSameBranch
(VcsRepositoryModuleDescriptor moduleDescriptor, VariableSubstitutor variableSubstitutor, @NotNull VcsRepositoryData first, @NotNull VcsRepositoryData second) Compares 2 branches in of a single variable set.boolean
isTheSameVcsLocation
(VcsRepositoryModuleDescriptor moduleDescriptor, VariableSubstitutor variableSubstitutor, @NotNull VcsRepositoryData first, @NotNull VcsRepositoryData second) Compares 2 repository locations in context of a single variable set.
-
Method Details
-
isTheSameVcsLocation
boolean isTheSameVcsLocation(VcsRepositoryModuleDescriptor moduleDescriptor, VariableSubstitutor variableSubstitutor, @NotNull @NotNull VcsRepositoryData first, @NotNull @NotNull VcsRepositoryData second) Compares 2 repository locations in context of a single variable set. It should return true if server location is the same. Branch can be different.- Parameters:
moduleDescriptor
- plugin module of the first repositoryvariableSubstitutor
- current variable substitutorfirst
- first repository to comparesecond
- second repository to compare
-
isTheSameBranch
boolean isTheSameBranch(VcsRepositoryModuleDescriptor moduleDescriptor, VariableSubstitutor variableSubstitutor, @NotNull @NotNull VcsRepositoryData first, @NotNull @NotNull VcsRepositoryData second) Compares 2 branches in of a single variable set. It should return true if server location and branch are the same.- Parameters:
moduleDescriptor
- plugin module of the first repositoryvariableSubstitutor
- current variable substitutorfirst
- first repository to comparesecond
- second repository to compare
-