old code
This commit is contained in:
parent
750ceaf8a1
commit
2b2de94eff
|
@ -26,50 +26,22 @@ func (rs *RepoStatus) makeBranchesBox(parent *gui.Node) {
|
||||||
newgrid.NextRow()
|
newgrid.NextRow()
|
||||||
|
|
||||||
rs.switchBranchB = newgrid.NewButton("Switch Branch", func() { // `progname:"SWITCH"`
|
rs.switchBranchB = newgrid.NewButton("Switch Branch", func() { // `progname:"SWITCH"`
|
||||||
/*
|
|
||||||
bname := rs.targetBranch.String()
|
|
||||||
log.Info("Should switch to branch", bname, "here")
|
|
||||||
|
|
||||||
var all [][]string
|
|
||||||
all = append(all, []string{"git", "checkout", bname})
|
|
||||||
if rs.DoAll(all) {
|
|
||||||
log.Info("branch switched to", bname)
|
|
||||||
} else {
|
|
||||||
log.Info("branch switched to", bname, "failed")
|
|
||||||
}
|
|
||||||
rs.updateNew()
|
|
||||||
*/
|
|
||||||
})
|
})
|
||||||
|
|
||||||
rs.targetBranch = newgrid.NewDropdown() // `progname:"TARGET"`
|
rs.targetBranch = newgrid.NewDropdown() // `progname:"TARGET"`
|
||||||
newgrid.NextRow()
|
newgrid.NextRow()
|
||||||
|
|
||||||
rs.showBranchesButton = newgrid.NewButton("find jcarr and devel", func() {
|
rs.showBranchesButton = newgrid.NewButton("find user and devel", func() {
|
||||||
if rs.TagExists("jcarr") {
|
log.Info("redo this")
|
||||||
log.Log(WARN, "tag jcarr exists")
|
|
||||||
} else {
|
|
||||||
log.Log(WARN, "tag jcarr does not exist")
|
|
||||||
}
|
|
||||||
if rs.TagExists("devel") {
|
|
||||||
log.Log(WARN, "tag devel exists")
|
|
||||||
} else {
|
|
||||||
log.Log(WARN, "tag devel does not exist")
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
newgrid.NextRow()
|
newgrid.NextRow()
|
||||||
|
|
||||||
rs.checkBranchesButton = newgrid.NewButton("CheckBranches()", func() {
|
rs.checkBranchesButton = newgrid.NewButton("CheckBranches()", func() {
|
||||||
/*
|
log.Info("redo this")
|
||||||
if rs.CheckBranches() {
|
|
||||||
log.Log(WARN, "Branches are perfect")
|
|
||||||
} else {
|
|
||||||
log.Log(WARN, "Branches are not perfect")
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
})
|
})
|
||||||
newgrid.NextRow()
|
newgrid.NextRow()
|
||||||
|
|
||||||
newgrid.NewButton("Revert master to devel", func() {
|
newgrid.NewButton("Revert master to devel", func() {
|
||||||
// rs.RevertMasterToDevel()
|
log.Info("redo this")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue