Class VcsRepositoryConfigurationComparatorImpl
java.lang.Object
com.atlassian.bamboo.vcs.configuration.service.VcsRepositoryConfigurationComparatorImpl
- All Implemented Interfaces:
VcsRepositoryConfigurationComparator
public class VcsRepositoryConfigurationComparatorImpl
extends Object
implements VcsRepositoryConfigurationComparator
-
Constructor Summary
ConstructorDescriptionVcsRepositoryConfigurationComparatorImpl
(CustomVariableContext customVariableContext) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isTheSameBranch
(VcsRepositoryModuleDescriptor moduleDescriptor, VariableSubstitutor variableSubstitutor, @NotNull VcsRepositoryData first, @NotNull VcsRepositoryData second) Compares 2 branches in of a certain variable set.boolean
isTheSameVcsLocation
(VcsRepositoryModuleDescriptor moduleDescriptor, VariableSubstitutor variableSubstitutor, @NotNull VcsRepositoryData first, @NotNull VcsRepositoryData second) Compares 2 repository locations in context of a certain variable set.
-
Constructor Details
-
VcsRepositoryConfigurationComparatorImpl
-
-
Method Details
-
isTheSameVcsLocation
public boolean isTheSameVcsLocation(VcsRepositoryModuleDescriptor moduleDescriptor, VariableSubstitutor variableSubstitutor, @NotNull @NotNull VcsRepositoryData first, @NotNull @NotNull VcsRepositoryData second) Compares 2 repository locations in context of a certain variable set. It should return true if server location is the same. Branch can be different.- Specified by:
isTheSameVcsLocation
in interfaceVcsRepositoryConfigurationComparator
- Parameters:
moduleDescriptor
- plugin module of the first repositoryvariableSubstitutor
- current variable substitutorfirst
- first repository to comparesecond
- second repository to compare
-
isTheSameBranch
public boolean isTheSameBranch(VcsRepositoryModuleDescriptor moduleDescriptor, VariableSubstitutor variableSubstitutor, @NotNull @NotNull VcsRepositoryData first, @NotNull @NotNull VcsRepositoryData second) Compares 2 branches in of a certain variable set. It should return true if server location and branch are the same.- Specified by:
isTheSameBranch
in interfaceVcsRepositoryConfigurationComparator
- Parameters:
moduleDescriptor
- plugin module of the first repositoryvariableSubstitutor
- current variable substitutorfirst
- first repository to comparesecond
- second repository to compare
-