rm old code
This commit is contained in:
parent
5171aca31f
commit
074cf12864
47
doGui.go
47
doGui.go
|
@ -118,50 +118,13 @@ func drawWindow(win *gadgets.BasicWindow) {
|
|||
} else {
|
||||
argv.Force = false
|
||||
}
|
||||
|
||||
// do the checkout
|
||||
if err := doCheckoutShared(); err != nil {
|
||||
badExit(err)
|
||||
log.Info("checkout error:", err)
|
||||
} else {
|
||||
log.Info("checkout was ok")
|
||||
}
|
||||
/*
|
||||
targetName := me.newBranch.String()
|
||||
log.Warn("setting all branches to", targetName)
|
||||
log.Info("auto create branches =", createBranches)
|
||||
if targetName == "devel" {
|
||||
now := time.Now()
|
||||
if err := doAllCheckoutDevel(); err != nil {
|
||||
}
|
||||
total, count, nope, _ := IsEverythingOnDevel()
|
||||
log.Printf("Devel branch check. %d total repos. (%d ok) (%d not on devel branch) (%s)\n", total, count, nope, shell.FormatDuration(time.Since(now)))
|
||||
if nope != 0 {
|
||||
log.Info("switching to devel branches failed")
|
||||
log.Info("auto create branches =", createBranches)
|
||||
if createBranches {
|
||||
} else {
|
||||
log.Info("You should enable the 'auto create branches' checkbox")
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if targetName == "master" {
|
||||
if err := doAllCheckoutMaster(); err != nil {
|
||||
log.Info("switching to master branches failed")
|
||||
}
|
||||
return
|
||||
}
|
||||
now := time.Now()
|
||||
// just assume user
|
||||
if err := doAllCheckoutUser(); err != nil {
|
||||
}
|
||||
total, count, nope, err := IsEverythingOnUser()
|
||||
log.Printf("User branch check. %d total repos. (%d ok) (%d not on user branch) (%s)\n", total, count, nope, shell.FormatDuration(time.Since(now)))
|
||||
if err != nil {
|
||||
log.Info("switching to user branches failed")
|
||||
log.Info("auto create branches =", createBranches)
|
||||
if createBranches {
|
||||
} else {
|
||||
log.Info("You should enable the 'auto create branches' checkbox")
|
||||
}
|
||||
}
|
||||
*/
|
||||
})
|
||||
me.newBranch = grid.NewDropdown()
|
||||
me.newBranch.AddText("master")
|
||||
|
|
Loading…
Reference in New Issue