public interface VcsRepositoryManager
Modifier and Type | Method and Description |
---|---|
default boolean |
divergentBranchesEnabled(@NotNull VcsRepositoryData vcsRepositoryData)
Check if VCS repository supports divergent branches and if the configuration allows them.
|
@Nullable Repository2VcsTypeConverter |
findConverterFor(@NotNull String pluginKey)
Looks for converted of an old style repository plugin data to a new style plugin data.
|
@Nullable Repository2VcsTypeConverter |
findReverseConverterFor(@NotNull String pluginKey)
Looks for converted of an new style repository plugin data to a old style plugin data.
|
@NotNull List<VcsRepositoryModuleDescriptor> |
getAvailableRepositoryDescriptors()
Returns a list of available (i.e.
|
@NotNull List<VcsRepositoryModuleDescriptor> |
getAvailableStandaloneRepositoryDescriptors()
Deprecated.
since 5.14
|
@Nullable VcsRepositoryModuleDescriptor |
getRepositoryModuleDescriptorByMavenScmKey(@NotNull String mavenScmKey,
@NotNull String preferredPluginKey) |
@Nullable VcsRepositoryModuleDescriptor |
getVcsRepositoryModuleDescriptor(@NotNull String pluginKey)
Return module descriptor for given plugin key or null if it doesn't exists or plugin is disabled.
|
default boolean |
supportsDivergentBranches(@NotNull String pluginKey)
Check if VCS plugin supports divergent branches.
|
@NotNull @NotNull List<VcsRepositoryModuleDescriptor> getAvailableRepositoryDescriptors()
VcsRepositoryModuleDescriptor
objects.VcsRepositoryModuleDescriptor
sorted by weight. Empty list if none exists.@Nullable @Nullable VcsRepositoryModuleDescriptor getVcsRepositoryModuleDescriptor(@NotNull @NotNull String pluginKey)
pluginKey
- plugin key@NotNull @Deprecated @NotNull List<VcsRepositoryModuleDescriptor> getAvailableStandaloneRepositoryDescriptors()
VcsRepositoryModuleDescriptor
objects representing
repository plugins that do not require Plan
during configuration.
This method only exist for compatibility with old plugins, that still use Repository
interface.
All plugins implemented with new API are "standalone" by definition.VcsRepositoryModuleDescriptor
sorted by weight. Empty list if none exists.@Nullable @Nullable VcsRepositoryModuleDescriptor getRepositoryModuleDescriptorByMavenScmKey(@NotNull @NotNull String mavenScmKey, @NotNull @NotNull String preferredPluginKey)
@Nullable @Nullable Repository2VcsTypeConverter findConverterFor(@NotNull @NotNull String pluginKey)
pluginKey
- key of an old plugin@Nullable @Nullable Repository2VcsTypeConverter findReverseConverterFor(@NotNull @NotNull String pluginKey)
pluginKey
- key of an new plugindefault boolean supportsDivergentBranches(@NotNull @NotNull String pluginKey)
divergentBranchesEnabled(VcsRepositoryData)
pluginKey
- plugin keydefault boolean divergentBranchesEnabled(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
vcsRepositoryData
- repository dataCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.