Documentation ¶
Overview ¶
Package changelogutil contains utility functions for changelogs.
Index ¶
- func ChangeLogsToBlamelist(ctx context.Context, changeLogs []*model.ChangeLog) *pb.BlameList
- func FindCommitIndexInBlameList(gitilesCommit *bbpb.GitilesCommit, blamelist *pb.BlameList) int
- func GetChangeLogs(c context.Context, rr *pb.RegressionRange, shouldIncludeLastPass bool) ([]*model.ChangeLog, error)
- func SetCommitPositionInBlamelist(blamelist *pb.BlameList, regressionStartPosition, regressionEndPosition int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeLogsToBlamelist ¶
func FindCommitIndexInBlameList ¶
func FindCommitIndexInBlameList(gitilesCommit *bbpb.GitilesCommit, blamelist *pb.BlameList) int
FindCommitIndexInBlameList find the index of the gitiles commit in blamelist. It returns -1 if it couldn't find.
func GetChangeLogs ¶
func GetChangeLogs(c context.Context, rr *pb.RegressionRange, shouldIncludeLastPass bool) ([]*model.ChangeLog, error)
GetChangeLogs queries Gitiles for changelogs in the regression range. If shouldIncludeLastPass is true, the result should also include the last pass revision. The result will be in descending order of recency (i.e. first failed revision at index 0).
func SetCommitPositionInBlamelist ¶
func SetCommitPositionInBlamelist(blamelist *pb.BlameList, regressionStartPosition, regressionEndPosition int64) error
SetCommitPositionInBlamelist sets the position field in BlameListSingleCommits of this blamelist. Commits in the blamelist are ordered by commit position in descending order. Index 0 refers to the highest-position commit in the regression range, with has the commit position same as regression end position. Index n-1 refers to the lowest-position commit in the regression range. We can find the commit position of all commits in between.
Types ¶
This section is empty.