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
Constructors Constructor Description VcsRepositoryConfigurationComparatorImpl(CustomVariableContext customVariableContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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 Detail
-
VcsRepositoryConfigurationComparatorImpl
public VcsRepositoryConfigurationComparatorImpl(CustomVariableContext customVariableContext)
-
-
Method Detail
-
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
-
-