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
PushResponseandPullResponse.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 theRepositoryServicedoes 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.TheHookChangesetBuilderis able to return allChangesets which are added during the current push/commit.The context for all repository hooks.Injectable factory forHookContextobjects.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 theHookContextdoes 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 newChangesets 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 aRepositoryor the entire history of aRepository.The lookup command executes a lookup for additional repository information.Use thisMergeCommandBuilderto 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 thisModifyCommandBuilderto 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.ThePullResponseis 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.ThePushResponseis the result of thePushCommandBuilder.push(sonia.scm.repository.Repository)method and contains information over the executed push command.From theRepositoryServiceit is possible to access all commands for a singleRepository.TheRepositoryServiceFactoryis the entrypoint of the repository api.This exception is throw if noRepositoryServiceis available for the givenRepository.Applies a revert of a chosen changeset onto the given repository/branch combination.Contains the result of an executed revert command.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.