summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
Diffstat (limited to 'doGui.go')
-rw-r--r--doGui.go47
1 files changed, 5 insertions, 42 deletions
diff --git a/doGui.go b/doGui.go
index 88baa94..f2b1973 100644
--- a/doGui.go
+++ b/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")