Documentation ¶
Overview ¶
Package bzr offers an interface to manage branches of the Bazaar VCS.
Index ¶
- type Branch
- func (b *Branch) Add(parts ...string) error
- func (b *Branch) CheckClean() error
- func (b *Branch) Commit(message string) error
- func (b *Branch) Init() error
- func (b *Branch) Join(parts ...string) string
- func (b *Branch) Location() string
- func (b *Branch) Push(attr *PushAttr) error
- func (b *Branch) PushLocation() (string, error)
- func (b *Branch) RevisionId() (string, error)
- type PushAttr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Branch ¶
type Branch struct {
// contains filtered or unexported fields
}
Branch represents a Bazaar branch.
func (*Branch) CheckClean ¶
CheckClean returns an error if 'bzr status' is not clean.
func (*Branch) Join ¶
Join returns b's location with parts appended as path components. In other words, if b's location is "lp:foo", and parts is {"bar, baz"}, Join returns "lp:foo/bar/baz".
func (*Branch) Push ¶
Push pushes any new revisions in b to attr.Location if that's provided, or to the default push location otherwise. See PushAttr for other options.
func (*Branch) PushLocation ¶
PushLocation returns the default push location for b.
func (*Branch) RevisionId ¶
RevisionId returns the Bazaar revision id for the tip of b.
Click to show internal directories.
Click to hide internal directories.