repo_manager

package
v0.0.0-...-6bef223 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 33 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFreeTypeRepoManager

func NewFreeTypeRepoManager(ctx context.Context, c *config.FreeTypeRepoManagerConfig, reg *config_vars.Registry, workdir, serverURL string, client *http.Client, cr codereview.CodeReview, local bool) (*parentChildRepoManager, error)

NewFreeTypeRepoManager returns a RepoManager instance which rolls FreeType in DEPS and updates header files and README.chromium.

Types

type CommandRepoManager

type CommandRepoManager struct {
	// contains filtered or unexported fields
}

CommandRepoManager implements RepoManager by shelling out to various configured commands to perform all of the work.

func NewCommandRepoManager

func NewCommandRepoManager(ctx context.Context, c *config.CommandRepoManagerConfig, reg *config_vars.Registry, workdir, serverURL string, cr codereview.CodeReview) (*CommandRepoManager, error)

NewCommandRepoManager returns a RepoManager implementation which rolls trace_processor_shell into Chrome.

func (*CommandRepoManager) CreateNewRoll

func (rm *CommandRepoManager) CreateNewRoll(ctx context.Context, rollingFrom *revision.Revision, rollingTo *revision.Revision, revisions []*revision.Revision, reviewers []string, dryRun bool, commitMsg string) (int64, error)

CreateNewRoll implements RepoManager.

func (*CommandRepoManager) GetRevision

func (rm *CommandRepoManager) GetRevision(ctx context.Context, id string) (*revision.Revision, error)

GetRevision implements RepoManager.

func (*CommandRepoManager) LogRevisions

func (rm *CommandRepoManager) LogRevisions(ctx context.Context, from, to *revision.Revision) ([]*revision.Revision, error)

LogRevisions implements RepoManager.

func (*CommandRepoManager) Update

Update implements RepoManager.

type CommandTmplVars

type CommandTmplVars struct {
	// RollingFrom is the revision we're updating from.
	RollingFrom string

	// RollingTo is the revision we're updating to.
	RollingTo string
}

CommandTmplVars is used as input to the text template provided to the SetPinnedRev command for updating the revision of the Child.

type RepoManager

type RepoManager interface {
	// Create a new roll attempt.
	CreateNewRoll(ctx context.Context, rollingFrom *revision.Revision, rollingTo *revision.Revision, revisions []*revision.Revision, reviewers []string, dryRun bool, commitMsg string) (int64, error)

	// Update the RepoManager's view of the world. Depending on the
	// implementation, this may sync repos and may take some time. Returns
	// the currently-rolled Revision, the tip-of-tree Revision, and a list
	// of all revisions which have not yet been rolled (ie. those between
	// the current and tip-of-tree, including the latter), in reverse
	// chronological order.
	Update(context.Context) (*revision.Revision, *revision.Revision, []*revision.Revision, error)

	// GetRevision returns a revision.Revision instance from the given
	// revision ID.
	GetRevision(context.Context, string) (*revision.Revision, error)

	// LogRevisions returns a list of Revision instances between two revisions.
	LogRevisions(context.Context, *revision.Revision, *revision.Revision) ([]*revision.Revision, error)
}

RepoManager is the interface used by different Autoroller implementations to manage checkouts.

func New

func New(ctx context.Context, c config.RepoManagerConfig, reg *config_vars.Registry, workdir, rollerName, serverURL, serviceAccount string, client *http.Client, cr codereview.CodeReview, isInternal bool, local bool) (RepoManager, error)

New returns a RepoManager instance based on the given RepoManagerConfig.

func NewAndroidRepoManager

func NewAndroidRepoManager(ctx context.Context, c *config.AndroidRepoManagerConfig, reg *config_vars.Registry, workdir string, serverURL, serviceAccount string, client *http.Client, cr codereview.CodeReview, isInternal, local bool) (RepoManager, error)

NewAndroidRepoManager returns an androidRepoManager instance.

Directories

Path Synopsis
common
pyl

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL