Documentation ¶
Index ¶
- Variables
- type Repository
- func (r *Repository) Branches(opt vcs.BranchesOptions) ([]*vcs.Branch, error)
- func (r *Repository) Close() error
- func (r *Repository) Commits(opt vcs.CommitsOptions) ([]*vcs.Commit, uint, error)
- func (r *Repository) FileSystem(at vcs.CommitID) (vfs.FileSystem, error)
- func (r *Repository) GetCommit(id vcs.CommitID) (*vcs.Commit, error)
- func (r *Repository) ResolveBranch(name string) (vcs.CommitID, error)
- func (r *Repository) ResolveRevision(spec string) (vcs.CommitID, error)
- func (r *Repository) ResolveTag(name string) (vcs.CommitID, error)
- func (r *Repository) Tags() ([]*vcs.Tag, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFileNotInManifest = errors.New("file does not exist in given revision")
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct { *hgcmd.Repository // contains filtered or unexported fields }
func Open ¶
func Open(dir string) (*Repository, error)
func (*Repository) Branches ¶
func (r *Repository) Branches(opt vcs.BranchesOptions) ([]*vcs.Branch, error)
func (*Repository) Close ¶
func (r *Repository) Close() error
func (*Repository) Commits ¶
func (r *Repository) Commits(opt vcs.CommitsOptions) ([]*vcs.Commit, uint, error)
func (*Repository) FileSystem ¶
func (r *Repository) FileSystem(at vcs.CommitID) (vfs.FileSystem, error)
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)
Click to show internal directories.
Click to hide internal directories.