public enum ScmFeature extends Enum<ScmFeature>
Enum Constant and Description |
---|
ARCHIVE
Indicates the SCM supports
streaming archives . |
BULK_COMMITS
Indicates the SCM supports
bulk commit retrieval . |
BULK_CONTENT
Indicates the SCM supports
bulk content retrieval . |
BULK_TRAVERSAL
Indicates the SCM supports
bulk commit traversal . |
COMMAND_BUILDERS
Indicates the SCM supports
builders . |
COMPARE
Indicates the SCM provides a
command factory
to compare refs. |
CROSS_REPOSITORY
Indicates the SCM supports cross-repository operations.
|
EDIT_FILE
Indicates the SCM supports file edit operations.
|
FORK
Indicates the SCM supports
forking its repositories. |
HOOKS
Indicates the SCM provides a
handler factory to apply repository-level hooks. |
INTEGRITY_CHECKS
Indicates the SCM supports integrity checks
|
LAST_MODIFIED
Indicates the SCM supports streaming the
last modification
for files. |
MERGE
Indicates the SCM supports
merging branches . |
MERGE_STRATEGIES
Indicates the SCM supports selectable merge strategies.
|
MIRRORS
Indicates the SCM supports
mirroring repositories |
PATCH
Indicates the SCM supports
streaming patches . |
PULL_REQUESTS
Indicates the SCM provides a
command factory
to create, view and merge pull requests . |
REFS
|
SIGNED_OBJECTS
Indicates the SCM supports retrieving
signed objects . |
UPDATE_DEFAULT_BRANCH
Indicates the SCM supports
updating the default branch
in its repositories. |
Modifier and Type | Method and Description |
---|---|
static ScmFeature |
parse(String value) |
static ScmFeature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScmFeature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScmFeature ARCHIVE
streaming archives
.public static final ScmFeature BULK_COMMITS
bulk commit retrieval
.public static final ScmFeature BULK_CONTENT
bulk content retrieval
.public static final ScmFeature BULK_TRAVERSAL
bulk commit traversal
.public static final ScmFeature COMMAND_BUILDERS
builders
.ScmService.createBuilder(Repository)
public static final ScmFeature COMPARE
command factory
to compare refs.
Note: SCMs may support comparing refs cross-repository
, but they are not
required to do so.
public static final ScmFeature CROSS_REPOSITORY
commits
or opening a pull request
between two
repositories will fail.COMPARE
,
FORK
,
MERGE
,
PULL_REQUESTS
public static final ScmFeature EDIT_FILE
ScmExtendedCommandFactory.editFile(EditFileCommandParameters)
public static final ScmFeature FORK
forking
its repositories.
SCMs which do not support forking will not support cross-repository
operations,
but just because forking is supported does not imply cross-repository support. The complexity of
cross-repository operations can be substantially higher than the complexity of creating forks, for some
SCMs, and forks can still offer value (for example, a sandboxed place to work) even if cross-repository
operations are not possible.
public static final ScmFeature HOOKS
handler factory
to apply repository-level hooks.public static final ScmFeature INTEGRITY_CHECKS
public static final ScmFeature LAST_MODIFIED
last modification
for files.CommitService.streamLastModified(LastModifiedRequest, LastModifiedCallback)
public static final ScmFeature MERGE
merging branches
.
Note: SCMs may support cross-repository
merges, merging a branch from one
repository to a target branch in another, but they are not required to do so.
public static final ScmFeature MERGE_STRATEGIES
merge commands
and/or pull requests
should mark this feature as supported.
Generally an SCM should support at least two strategies if this feature is enabled since, with only a single strategy, the strategy isn't actually selectable. But the only requirement of this feature is that the SCM must support at least one strategy.
public static final ScmFeature MIRRORS
mirroring repositories
ScmService.getMirrorCommandFactory(Repository)
public static final ScmFeature PATCH
streaming patches
.public static final ScmFeature PULL_REQUESTS
command factory
to create, view and merge pull requests
.
Note: SCMs may support cross-repository
pull requests, merging commits from
one repository into another, but they are not required to do so.
public static final ScmFeature REFS
public static final ScmFeature SIGNED_OBJECTS
signed objects
.public static final ScmFeature UPDATE_DEFAULT_BRANCH
updating the default branch
in its repositories.public static ScmFeature[] values()
for (ScmFeature c : ScmFeature.values()) System.out.println(c);
public static ScmFeature valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nonnull public static ScmFeature parse(@Nonnull String value)
Copyright © 2019 Atlassian. All rights reserved.