Interface VcsRepositoryConfigurationComparator
-
- All Known Implementing Classes:
VcsRepositoryConfigurationComparatorImpl
@Internal public interface VcsRepositoryConfigurationComparator
Compares repository configurations in different contexts.- Since:
- 5.14
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
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 Detail
-
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
-
-