// Unpak will create a branch named pak and a tag named _pak_latest_.
// Caution: Make sure you the branch and tag is not exist.
Unpak will create a branch named pak and a tag named _pak_latest_.
Caution: Make sure you the branch and tag is not exist.
// Unpak will create a branch named pak and a tag named _pak_latest_ . // Caution : Make sure you the branch and tag is not exist .
func (this *HgPkg) Pak(ref string) (string, error) {
	_, err := this.Hg("update", ref)
	if err != nil {
		return "", err
	}
	_, err = this.Hg("bookmark", this.PakbranchRef)
	if err != nil {
		return "", err
	}
	checksum, err := this.GetChecksum(this.PakbranchRef)
	if err != nil {
		return "", err
	}
	return checksum, err
}
func ( this * HgPkg ) Pak ( ref string ) ( string , error ) { _ , err := this . Hg ( " " , ref ) if err != nil { return " " , err } _ , err = this . Hg ( " " , this . PakbranchRef ) if err != nil { return " " , err } checksum , err := this . GetChecksum ( this . PakbranchRef ) if err != nil { return " " , err } return checksum , err }
Unpak will create a branch named pak and a tag named _pak_latest_.
Unpak will create a branch named pak and a tag named _pak_latest_ .
// Create Pakbranch // // Create Paktag // _, err = this.Hg("tag", "--local", "-r", checksum, Paktag) // if err != nil { // 	return "", err // }