The 'master' versions are meant to be applied to staging, and aren't
generally expected to be used directly by downstreams. If there's a
difference between master and staging, having it apply to staging is
more useful.
Signed-off-by: George Dunlap <george.dunlap@citrix.com>
out, err = r.gitCmd(append([]string{"am", "--reject"}, files...)...)
if err != nil {
- fmt.Printf("am failed, cleaning up tree")
+ fmt.Printf("am failed, cleaning up tree\n")
r.gitCmd("am", "--abort")
r.gitCmd("checkout", "-f")
r.gitCmd("clean", "-ffdx")
branches = append([]string{"master"}, branches...)
+ if tree == TreeXen || tree == TreeQemuU {
+ branches = append([]string{"staging"}, branches...)
+ }
+
for _, branch := range branches {
if _, err = xr.MergeDefault(branch); err != nil {
err = fmt.Errorf("Merging branch %s on tree %v: %v\n",
func XenStableBranch(v XenVersion) string {
if v == XenVersionMaster {
- return "master"
+ return "staging"
} else {
return "stable-" + v.String()
}