const VersionFileProjectPath = "src/third_party/chromiumos-overlay"
AssertBranchesDoNotExist checks that branches do not already exist.
BranchExists checks that a branch matching the given pattern exists in a particular project.
BranchType determines the type of branch to be created.
func BumpForCreate(componentToBump chromeos_version.VersionComponent, release, push bool, branchName, sourceUpstream string) error
BumpForCreate bumps the version in chromeos_version.sh, as needed, in the source branch for a branch creation command.
CheckIfAlreadyBranched checks if there's already a branch for the desired new branch to create on the manifest-internal repo.
CheckSelfGroupMembership checks if the authenticated user is in the given group on the given Gerrit host. It returns a bool indicating whether or not that's the case, or an error if the lookup fails.
CreateRemoteBranches makes the requested branches on the remote Gerrit hosts using git checkouts and pushes.
CreateRemoteBranches creates a bunch of branches on remote Gerrit instances for the specified inputs using the Gerrit API.
GetProjectCheckout gets a local checkout of a particular project.
GetWorkingManifestForVersion gets the manifest in manifest-versions/buildspecs for the given version string (of the format %d.%d.%d).
InitWorkingManifest initializes a local working manifest (a.k.a. buildspec) from a Gerrit path.
LogOut logs to stderr.
LogOut logs to stdout.
func NewBranchName(vinfo mv.VersionInfo, custom, descriptor string, release, factory, firmware, stabilize bool) string
Determine the name for a new branch. By convention, standard branch names must end with the stripped version string from which they were created, followed by '.B'.
- A branch created from 1.0.0 must end with -1.B - A branch created from 1.2.0 must end with -1.2.B
Release branches have a slightly different naming scheme. They include
the milestone from which they were created. Example: release-R12-1.2.B
ProjectFetchUrl returns the fetch URL for a remote Project.
RepairManifestRepositories repairs all manifests in all manifest repositories on the current branch and commits the changes. It then pushes the state of the local git branches to remote.
WhichVersionShouldBump returns which version is incremented by builds on a new branch.
CheckoutOptions describes how to check out a Git repo.
GerritProjectBranch contains all the details for creating a new Gerrit branch based on an existing one.
GerritProjectBranches creates a slice of GerritProjectBranch objects, which are representations of ProjectBranches that are useful for API based branching.
GetNonManifestBranches filters out non-Manifest branches.
RepairManifestsOnDisk repairs the revision and upstream attributes of manifest elements on disk for the given projects.
ProjectBranch is a project and a branch.
ProjectBranches returns a list of ProjectBranch structs: one for each branchable project. The original parameter is the CrOS branch from which the current checkout stems.