Documentation ¶
Overview ¶
Package hg interacts with Mercurial repositories.
Index ¶
- func Detect(wd string) vcs.VCS
- type Mercurial
- func (m *Mercurial) Bookmark() string
- func (m *Mercurial) Branch() string
- func (m *Mercurial) Commit() string
- func (m *Mercurial) Config(key string) []string
- func (m *Mercurial) Name() string
- func (m *Mercurial) Remote(name string) string
- func (m *Mercurial) Root() string
- func (m *Mercurial) ShortCommit() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mercurial ¶
type Mercurial struct {
// contains filtered or unexported fields
}
Mercurial is an instance of vcs.VCS that will operate on a Mercurial repository.
func (*Mercurial) Config ¶
Config will look up the given key and return a string slice of the values.
func (*Mercurial) Remote ¶
Remote will return the url for the given remote or 'default' if no remote is provided. If the repository does not have the given remote, empty string will be returned.
func (*Mercurial) ShortCommit ¶
ShortCommit returns the short commit id of the repository.
Click to show internal directories.
Click to hide internal directories.