summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-21 10:30:55 -0600
committerJeff Carr <[email protected]>2025-02-21 10:30:55 -0600
commitfbf3e66de87e1036b54f6ab5c75f830dd0788d89 (patch)
tree87b7205e27e0cdbff2848e56c95148fbb47670da
parent9cc63ce391c3df35baa5ea3fcf4a19622117ed1f (diff)
more totals. not quite correct yet thoughv0.22.89
-rw-r--r--windowRepoProblems.go37
1 files changed, 22 insertions, 15 deletions
diff --git a/windowRepoProblems.go b/windowRepoProblems.go
index 9b22bb1..e04766c 100644
--- a/windowRepoProblems.go
+++ b/windowRepoProblems.go
@@ -78,24 +78,16 @@ func makeRepoProblemsWindow() *repoProblemsWindow {
pw.stack.NewGroup("things (these don't work yet)")
grid := pw.stack.RawGrid()
-
- grid.NewButton("devel is behind master", func() {
- log.Info("not done yet")
- me.found = new(gitpb.Repos)
- all := me.forge.Repos.SortByFullPath()
- for all.Scan() {
- repo := all.Next()
- if repo.GetDevelVersion() == repo.GetMasterVersion() {
- continue
- }
- me.found.AppendByGoPath(repo)
-
- }
- makeStandardReposWindow(me.found)
- })
var found *gitpb.Repos
var txt string
+ found = develBehindMasterProblem()
+ txt = fmt.Sprintf("devel is behind master (%d)", found.Len())
+ grid.NewButton(txt, func() {
+ found := develBehindMasterProblem()
+ makeStandardReposWindow(found)
+ })
+
found = remoteUserBranchProblem()
txt = fmt.Sprintf("user branch is remote (%d)", found.Len())
grid.NewButton(txt, func() {
@@ -126,6 +118,21 @@ func makeRepoProblemsWindow() *repoProblemsWindow {
return pw
}
+func develBehindMasterProblem() *gitpb.Repos {
+ log.Info("not done yet")
+ found := new(gitpb.Repos)
+ all := me.forge.Repos.SortByFullPath()
+ for all.Scan() {
+ repo := all.Next()
+ if repo.GetDevelVersion() == repo.GetMasterVersion() {
+ continue
+ }
+ found.AppendByGoPath(repo)
+
+ }
+ return found
+}
+
func remoteUserBranchProblem() *gitpb.Repos {
found := new(gitpb.Repos)
all := me.forge.Repos.SortByFullPath()