Package sonia.scm.repository.api
package sonia.scm.repository.api
API for repository access.
-
ClassDescriptionAbstract class for bundle or unbundle command.Abstract base class for
PushResponse
andPullResponse
.Shows changeset information by line for a given file.The branches command list all repository branches.
Samples:
Return all branches of a repository:BrowseCommandBuilder is able to browse the files of aRepository
.The bundle command dumps a repository to a byte source such as a file.Response of bundle command.Shows the content of a file in theRepository
.
Sample:
Print the content of the file core/pom.xml from revision 46a23689ac91:Enumeration of available commands.This exception is thrown if theRepositoryService
does not support the requested command.Shows differences between revisions for a specified file or the entire revision.
Note: One of the parameter path or revision have to be set.
Sample:
Print the differences from revision 33b93c443867:Specifies the output format of a diff command.Detailes of a file lock.Can lock and unlock files and check lock states.Exception thrown whenever a locked file should be modified or locked/unlocked by a user that does not hold the lock.The HookBranchProvider returns information about branch changes during the current hook.TheHookChangesetBuilder
is able to return allChangeset
s which are added during the current push/commit.The context for all repository hooks.Injectable factory forHookContext
objects.Base exception for all exceptions which can occur during the hook initialization.Enumeration of available hook features.This exception is thrown if the underlying provider of theHookContext
does not support the requestedHookFeature
.Send messages back to scm client during hook execution.The HookDiffProvider returns modifications of branches that have been changed during the current hook.The HookTagProvider returns information about tags during the current hook.This exception is thrown if the repository import fails.The incoming command shows newChangeset
s found in a different repository location.This exception is thrown if the repository import fails.Result of a lock command.LogCommandBuilder is able to show the history of a file in aRepository
or the entire history of aRepository
.The lookup command executes a lookup for additional repository information.Use thisMergeCommandBuilder
to merge two branches of a repository (MergeCommandBuilder.executeMerge()
) or to check if the branches could be merged without conflicts (MergeCommandBuilder.dryRun()
).This class keeps the result of a merge of branches.This class keeps the result of a merge dry run.Get the modifications applied to files in a revision.Use thisModifyCommandBuilder
to make file changes to the head of a branch.Show changesets not found in a remote repository.The pull command pull changes from a other repository.ThePullResponse
is the result of the methodsPullCommandBuilder.pull(sonia.scm.repository.Repository)
andPullCommandBuilder.pull(String)
and contains information for the executed pull command.The push command push changes to another repository.ThePushResponse
is the result of thePushCommandBuilder.push(sonia.scm.repository.Repository)
method and contains information over the executed push command.From theRepositoryService
it is possible to access all commands for a singleRepository
.TheRepositoryServiceFactory
is the entrypoint of the repository api.This exception is throw if noRepositoryService
is available for the givenRepository
.An ScmProtocol represents a concrete protocol provided by the SCM-Manager instance to interact with a repository depending on its type.ScmProtocolProvider<T extends ScmProtocol>Provider for scm native protocols.The tags command list all repository tags.
Samples:
Return all tags of a repository:The unbundle command can restore an empty repository from a bundle.Response of unbundle command.Result of an unlock command.