@Deprecated public interface

Changeset

implements MinimalChangeset PropertySupport
com.atlassian.stash.content.Changeset

This interface is deprecated.
in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. This "changeset" is really describing a Commit, not a Changeset.

Class Overview

Describes a changeset / commit.

Summary

Fields
public static final Function<ChangesetPerson> TO_AUTHOR
public static final Function<ChangesetCommit> TO_COMMIT
[Expand]
Inherited Fields
From interface com.atlassian.stash.content.MinimalChangeset
Public Methods
@Nonnull Person getAuthor()
Date getAuthorTimestamp()
String getMessage()
Collection<MinimalChangeset> getParents()
@Nullable Repository getRepository()
[Expand]
Inherited Methods
From interface com.atlassian.stash.content.AttributeSupport
From interface com.atlassian.stash.content.MinimalChangeset
From interface com.atlassian.stash.property.PropertySupport

Fields

public static final Function<ChangesetPerson> TO_AUTHOR

public static final Function<ChangesetCommit> TO_COMMIT

Public Methods

@Nonnull public Person getAuthor ()

Returns
  • The author of the changeset

public Date getAuthorTimestamp ()

Returns
  • The timestamp of the changeset. Precision is in seconds

public String getMessage ()

Returns
  • the commit message

public Collection<MinimalChangeset> getParents ()

Returns
  • the changeset parents

@Nullable public Repository getRepository ()

Returns
  • the repository that this changeset belongs to. For reasons of performance and conciseness this field may be null depending on the service used to construct this changeset. If an explicit repository context has been provided by some other mechanism (for example, web-fragments on the changeset page will have an explicit 'repository' object in their render context) it is preferable to use that instead of this method.