rm old code

This commit is contained in:
Jeff Carr 2025-02-09 03:17:56 -06:00
parent 5171aca31f
commit 074cf12864
1 changed files with 5 additions and 42 deletions

View File

@ -118,50 +118,13 @@ func drawWindow(win *gadgets.BasicWindow) {
} else { } else {
argv.Force = false argv.Force = false
} }
// do the checkout
if err := doCheckoutShared(); err != nil { 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 = grid.NewDropdown()
me.newBranch.AddText("master") me.newBranch.AddText("master")