Class: RevisionSpecifyingBuilder

bitbucket/util/navbuilder. RevisionSpecifyingBuilder

new RevisionSpecifyingBuilder()

bitbucket/util/navbuilder.Builder to select which commits are involved and whether to retrieve the
"raw" version when browsing files within Bitbucket Server.

NOTE: The constructor is not exposed. A new instance can be created through the Builder API.

Source:

Methods

at(refId) → {bitbucket/util/navbuilder.RevisionSpecifyingBuilder}

Set the "at" revision for browsing. This revision describes the branch head whose history is being viewed.
This is not the actual revision at which to view the file (but it is used as fallback for that purpose).
The main purpose of this parameter is to determine which branch to use as "current" in the page layout.

Parameters:
Name Type Description
refId string

The ID of a ref or commit in the SCM whose history to browse.

Source:
Returns:
Type
bitbucket/util/navbuilder.RevisionSpecifyingBuilder

raw() → {bitbucket/util/navbuilder.RevisionSpecifyingBuilder}

Describes that you want to view the "raw"/downloadable version of the file, not the HTML version

Source:
Returns:
Type
bitbucket/util/navbuilder.RevisionSpecifyingBuilder

until(commitId, path) → {bitbucket/util/navbuilder.RevisionSpecifyingBuilder}

Set the "until" commit for browsing. This commit describes the actual revision at which you want to view file content.

Parameters:
Name Type Description
commitId string

The ID of a commit in the SCM at which to browse.

path string

the path at this commit. Since we're following renames, the path at this commit might be different from at the head.

Source:
Returns:
Type
bitbucket/util/navbuilder.RevisionSpecifyingBuilder