Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Changelog ¶
func Changelog(httpClient *http.Client, source, target, host, repo, croslandURL string, querySize int) (map[string]*RepoLog, map[string]*RepoLog, utils.ChangelogError)
Changelog generates a changelog between 2 build numbers
httpClient is a authorized http.Client object with Gerrit scope.
sourceBuildNum and targetBuildNum should be build numbers. It should match a tag that links directly to snapshot.xml Ex. For /refs/tags/15049.0.0, the argument should be 15049.0.0
host should be the GoB instance that Manifest files are hosted in ex. "cos.googlesource.com"
repo should be the repository that build manifest files are located, ex. "cos/manifest-snapshots"
querySize should be the number of commits that should be included in each repository changelog. Specify as -1 to get all commits
Outputs two changelogs The first changelog contains new commits that were added to the target build starting from the source build number
The second changelog contains all commits that are present in the source build but not present in the target build