summaryrefslogtreecommitdiff
path: root/mergeAll.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-13 18:24:58 -0600
committerJeff Carr <[email protected]>2024-11-13 18:24:58 -0600
commit5fcdd19170fc1c792a4e93505bd554cca27433cc (patch)
tree4d972a28e81bb7288244c793c52f3b221d38a8ce /mergeAll.go
parent2007be922c7024e30a1bc718b66a72f48b7728d0 (diff)
rm more old code
Diffstat (limited to 'mergeAll.go')
-rw-r--r--mergeAll.go71
1 files changed, 0 insertions, 71 deletions
diff --git a/mergeAll.go b/mergeAll.go
deleted file mode 100644
index 7a606be..0000000
--- a/mergeAll.go
+++ /dev/null
@@ -1,71 +0,0 @@
-package main
-
-import (
- "go.wit.com/log"
-)
-
-func mergeAllDevelToMain() bool {
- log.Info("merge all here")
- loop := me.repos.View.ReposSortByName()
- for loop.Scan() {
- repo := loop.Repo()
-
- if repo.ReadOnly() {
- log.Info("skipping readonly", repo.Name(), repo.State())
- continue
- }
- if repo.State() != "merge to main" {
- log.Info("skipping. not merge to main", repo.Name(), repo.State())
- continue
- }
- if repo.CheckDirty() {
- log.Info("skipping dirty", repo.Name(), repo.State())
- continue
- }
- log.Info("found", repo.Name(), repo.State())
- repo.NewScan()
- if repo.Status.MergeDevelToMaster() {
- log.Warn("THINGS SEEM OK fullAutomation() returned true.")
- } else {
- log.Warn("last repo:", repo.Name())
- log.Warn("THINGS FAILED fullAutomation() returned false")
- return false
- }
- repo.NewScan()
- }
- log.Warn("EVERYTHING WORKED")
- return true
-}
-
-func mergeAllUserToDevel() bool {
- log.Info("merge all here")
- loop := me.repos.View.ReposSortByName()
- for loop.Scan() {
- repo := loop.Repo()
-
- if repo.ReadOnly() {
- log.Info("skipping readonly", repo.Name(), repo.State())
- continue
- }
- if repo.State() != "merge to devel" {
- log.Info("skipping. not merge to devel", repo.Name(), repo.State())
- continue
- }
- if repo.CheckDirty() {
- log.Info("skipping dirty", repo.Name(), repo.State())
- continue
- }
- log.Info("found", repo.Name(), repo.State())
- repo.NewScan()
- if repo.Status.MergeUserToDevel() {
- log.Warn("THINGS SEEM OK fullAutomation() returned true.")
- } else {
- log.Warn("last repo:", repo.Status.Path())
- log.Warn("THINGS FAILED fullAutomation() returned false")
- return false
- }
- repo.NewScan()
- }
- log.Warn("EVERYTHING WORKED")
- return true
-}