func (b *Bzr) Checkout(d *Dependency) (err error) {
	err = util.RunCommand("bzr up --revision " + d.Version)
	return
}
Checkout updates a bzr repo
package dep
import (
	"os/exec"
	"strings"
	"github.com/vube/depman/colors"
	"github.com/vube/depman/util"
)
type Bzr struct{}
func (b *Bzr) LastCommit(d *Dependency, branch string) (hash string, err error) {
	c := exec.Command("bzr", "log", "--line")
	out, err := c.CombinedOutput()
	if err != nil {
		util.Print("pwd: " + util.Pwd())
		util.PrintIndent(colors.Red("bzr log --line"))
		util.PrintIndent(colors.Red(string(out)))
		util.PrintIndent(colors.Red(err.Error()))
		util.Fatal("")
	}
	hash = strings.Split(string(out), ":")[0]
	return
}
func (b *Bzr) GetHead(d *Dependency) (hash string, err error) {
	var pwd string
	pwd = util.Pwd()
	util.Cd(d.Path())
	defer util.Cd(pwd)
	out, err := exec.Command("bzr", "revno", d.Version).CombinedOutput()
	hash = strings.TrimSuffix(string(out), "\n")
	if err != nil {
		util.Print("pwd: " + util.Pwd())
		util.PrintIndent(colors.Red("bzr revno " + d.Version))
		util.PrintIndent(colors.Red(hash))
		util.PrintIndent(colors.Red(err.Error()))
		util.Fatal("")
	}
	return
}
func (b *Bzr) Clone(d *Dependency) (err error) {
	if !util.Exists(d.Path()) {
		err = util.RunCommand("go get -u " + d.Repo)
	}
	return
}
func (b *Bzr) Update(d *Dependency) (err error) {
	return
}
func (b *Bzr) Fetch(d *Dependency) (err error) {
	err = util.RunCommand("bzr pull")
	return
}