hgcmd

package
v0.0.0-...-7dc7b4a Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2016 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	Dir string
}

func CloneHgRepository

func CloneHgRepository(url, dir string, opt vcs.CloneOpt) (*Repository, error)

func Open

func Open(dir string) (*Repository, error)

func (*Repository) BlameFile

func (r *Repository) BlameFile(path string, opt *vcs.BlameOptions) ([]*vcs.Hunk, error)

func (*Repository) Branches

func (r *Repository) Branches(opt vcs.BranchesOptions) ([]*vcs.Branch, error)

func (*Repository) Commits

func (r *Repository) Commits(opt vcs.CommitsOptions) ([]*vcs.Commit, uint, error)

func (*Repository) Committers

func (r *Repository) Committers(opt vcs.CommittersOptions) ([]*vcs.Committer, error)

func (*Repository) Diff

func (r *Repository) Diff(base, head vcs.CommitID, opt *vcs.DiffOptions) (*vcs.Diff, error)

func (*Repository) FileSystem

func (r *Repository) FileSystem(at vcs.CommitID) (vfs.FileSystem, error)

func (*Repository) GetCommit

func (r *Repository) GetCommit(id vcs.CommitID) (*vcs.Commit, error)

func (*Repository) RepoDir

func (r *Repository) RepoDir() string

func (*Repository) ResolveBranch

func (r *Repository) ResolveBranch(name string) (vcs.CommitID, error)

func (*Repository) ResolveRevision

func (r *Repository) ResolveRevision(spec string) (vcs.CommitID, error)

func (*Repository) ResolveTag

func (r *Repository) ResolveTag(name string) (vcs.CommitID, error)

func (*Repository) Tags

func (r *Repository) Tags() ([]*vcs.Tag, error)

func (*Repository) UpdateEverything

func (r *Repository) UpdateEverything(opt vcs.RemoteOpts) (*vcs.UpdateResult, error)

Jump to

Keyboard shortcuts

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