| com.atlassian.stash.history.HistoryService |
This interface is deprecated.
in 2.11 for removal in 4.0. Use CommitService, which contains most of the same methods.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
in 2.10 for removal in 4.0. Use
getChanges(ChangesRequest, PageRequest)
instead; it is more flexible and more readily evolved
| |||||||||||
This method is deprecated.
in 3.0 for removal in 4.0. Use
getChanges(ChangesRequest, PageRequest) instead.
| |||||||||||
This method is deprecated.
in 3.0 for removal in 4.0. Use
getCommit(CommitRequest) instead.
| |||||||||||
This method is deprecated.
in 3.0 for removal in 4.0. Use
getCommit(CommitRequest) instead.
| |||||||||||
This method is deprecated.
in 3.0 for removal in 4.0. Use
getCommit(CommitRequest) instead.
| |||||||||||
This method is deprecated.
in 3.0 for removal in 4.0. Use
getCommit(CommitRequest) instead.
| |||||||||||
This method is deprecated.
in 3.0 for removal in 4.0. Use
getCommits(CommitsRequest, PageRequest) instead.
| |||||||||||
This method is deprecated.
in 3.0 for removal in 4.0. Use
getCommits(CommitsRequest, PageRequest) instead.
| |||||||||||
This method is deprecated.
in 3.0 for removal in 4.0. Use
getCommitsBetween(CommitsBetweenRequest, PageRequest) instead.
| |||||||||||
This method is deprecated.
in 3.0 for removal in 4.0. Use
getDetailedChangesets(DetailedChangesetsRequest, PageRequest) instead
| |||||||||||
This method is deprecated.
in 3.0 for removal in 4.0. Use
streamChanges(ChangesRequest, ChangeCallback)
| |||||||||||
This method is deprecated.
in 3.0 for removal in 4.0. Use
streamCommitsBetween(CommitsBetweenRequest, CommitCallback) instead
| |||||||||||
This method is deprecated.
in 2.10 for removal in 4.0. Use getChanges(ChangesRequest, PageRequest)
instead; it is more flexible and more readily evolved
Retrieves a page of changes between sinceId (exclusively) and untilId (inclusively).
| repository | the repository to find the changes in |
|---|---|
| untilId | a changeset, branch or tag in the repository potentially containing changes which are not
present in sinceId |
| sinceId | a changeset, branch or tag in the repository |
| pageRequest | the start and limit for the page being requested |
This method is deprecated.
in 3.0 for removal in 4.0. Use getChanges(ChangesRequest, PageRequest) instead.
Retrieves a page of changes between two changesets. If the since changeset is not specified, the until changeset's first
parent is used automatically.
| request | describes the two changesets to retrieve changes between and the repository which contains both changesets |
|---|---|
| pageRequest | the start and limit for the page being requested |
This method is deprecated.
in 3.0 for removal in 4.0. Use getCommit(CommitRequest) instead.
Retrieves a changeset by its id or the most recent changeset affecting a branch or tag. The specified
attributesToLoad will also be loaded. These attributes are metadata associated with the changeset
by a given ChangesetIndexer.
| repository | the repository to find the changeset |
|---|---|
| changesetId | the starting changeset, which may be a specific commit or a branch or tag name |
| NoSuchEntityException | Thrown if no matching changeset can be found. |
|---|
This method is deprecated.
in 3.0 for removal in 4.0. Use getCommit(CommitRequest) instead.
Retrieves the most recent changeset affecting the specified repository and path, starting from the changeset
identified by changesetId, which may be a commit, branch or tag.
| repository | the repository to find the changeset and path in |
|---|---|
| changesetId | the starting changeset, which may be a specific commit or a branch or tag name |
| path | the path to find the first changeset for |
| NoSuchEntityException | Thrown if no matching changeset can be found. |
|---|
This method is deprecated.
in 3.0 for removal in 4.0. Use getCommit(CommitRequest) instead.
Retrieves the most recent changeset affecting the specified repository and path, starting from the changeset
identified by changesetId, which may be a commit, branch or tag. The specified attributesToLoad
will also be loaded. These attributes are metadata associated with the changeset
by a given ChangesetIndexer.
| repository | the repository to find the changeset and path in |
|---|---|
| changesetId | the starting changeset, which may be a specific commit or a branch or tag name |
| path | the path to find the first changeset for |
| NoSuchEntityException | Thrown if no matching changeset can be found. |
|---|
This method is deprecated.
in 3.0 for removal in 4.0. Use getCommit(CommitRequest) instead.
Retrieves a changeset by its id or the most recent changeset affecting a branch or tag.
| repository | the repository to find the changeset |
|---|---|
| changesetId | the starting changeset, which may be a specific commit or a branch or tag name |
| NoSuchEntityException | Thrown if no matching changeset can be found. |
|---|
This method is deprecated.
in 3.0 for removal in 4.0. Use getCommits(CommitsRequest, PageRequest) instead.
Retrieves a page of changesets for the provided path on the specified branch.
If the providedchangesetId is null, the default branch for the repository will be assumed. If
the path is null, changesets are returned starting from (and including) the provided
changesetId (where, again, the repository's default branch will be used if null). As a result
this service call may be used to:
| repository | the repository to find the changesets and path in |
|---|---|
| changesetId | the starting changeset from which to search for other changesets, which may be a branch or tag name or a changeset hash |
| path | the path find changesets for |
| attributesToLoad | Additional attributes to load |
| pageRequest | the start and limit for the page being requested |
This method is deprecated.
in 3.0 for removal in 4.0. Use getCommits(CommitsRequest, PageRequest) instead.
Retrieves a page of changesets for the provided path on the specified branch.
If the providedchangesetId is null, the default branch for the repository will be assumed. If
the path is null, changesets are returned starting from (and including) the provided
changesetId (where, again, the repository's default branch will be used if null). As a result
this service call may be used to:
| repository | the repository to find the changesets and path in |
|---|---|
| changesetId | the starting changeset from which to search for other changesets, which may be a branch or tag name or a changeset hash |
| path | the path find changesets for |
| pageRequest | the start and limit for the page being requested |
This method is deprecated.
in 3.0 for removal in 4.0. Use
getCommitsBetween(CommitsBetweenRequest, PageRequest) instead.
Retrieves a page of changesets between the included changesets
and the excluded changesets. Included and excluded changesets may
be specified by branch or tag name or by hash. The changesets returned are those which are reachable an included
changeset and not reachable from any excluded changeset. While this may imply an ancestral relationship between
include and exclude IDs, that is not strictly required. When the IDs are unrelated, all changesets referenceable
from included changesets are candidates for the returned page, and excluded changesets are effectively ignored.
Paths may be provided to further narrow the results, restricting the returned changesets to only those affecting
one or more of the specified paths.
---- A ---- B ---- C
\
\
FA1 ---- FA2 ---- FA3
If "master" is excluded and "feature-A" is included, changesets FA1, FA2 and FA3 will be returned, because they
are reachable from "feature-A" but not from "master". If the two IDs were reversed, changesets B and C would be
returned, because they are reachable from "master" but not from "feature-A". This approach of swapping includes
and excludes can be used to determine how two branches have diverged over time.
Warning: Changesets specified using branch or tag names, will be resolved against the primary
repository. When retrieving changesets between repositories,
changesets in the secondary repository may only be
specified by hash. This means requesting a page like this will not work:
ChangesetsBetweenRequest request = new ChangesetsBetweenRequest.Builder(repository)
.exclude("master")
.include("master")
.secondaryRepository(forkOfRepository)
.build();
Page<Changeset> page = historyService.getChangesetsBetween(request, PageUtils.newRequest(0, 25));
The returned page will always be empty, because "master" was resolved on both sides using the same repository,
and so it produced the same changeset to include and exclude.| request | the changesets to include/exclude, paths to filter by and which repository, or repositories, contain the changesets |
|---|---|
| pageRequest | the start and limit for the page being requested |
This method is deprecated.
in 3.0 for removal in 4.0. Use
getDetailedChangesets(DetailedChangesetsRequest, PageRequest) instead
Retrieves each of the changesets in getChangesetIds() changesetIds} and returns
their details, including the first page of changes between the changeset in question and its first parent.
page size is less than the size of the collection of IDs, a subset of the
collection will be returned. Otherwise, detailed changesets for all IDs in the requested collection are returned.| request | request parameters, including repository and the relevant changesets |
|---|---|
| pageRequest | the start and limit of the page being request |
| NoSuchChangesetException | if ignoreMissing is not set and any given changeset
cannot be found. |
|---|
This method is deprecated.
in 3.0 for removal in 4.0. Use streamChanges(ChangesRequest, ChangeCallback)
Streams changes between the until and since changesets. If the since changeset is not specified, the
until changeset's first parent is used automatically.
| request | describes the two changesets to retrieve changes between and the repository which contains both changesets |
|---|---|
| callback | the callback for receiving the changes |
This method is deprecated.
in 3.0 for removal in 4.0. Use
streamCommitsBetween(CommitsBetweenRequest, CommitCallback) instead
Streams changesets between the included changesets and the
excluded changesets.
onStart(ChangesetContext) on the supplied callback once
followed by zero or more calls to onChangeset(Changeset), one for each changeset to be
streamed (until false is returned by onChangeset(...)
or there are no more changesets), followed by a single call to onEnd(ChangesetSummary).
See getChangesetsBetween(...) for a
description of the semantics of the changesets returned.| request | the changesets to include/exclude, paths to filter by and which repository, or repositories, contain the changesets |
|---|---|
| callback | the callback for receiving the changesets |