'all' seems more sensible than 'loop'
This commit is contained in:
parent
353290ecb1
commit
ada387b966
6
cobol.go
6
cobol.go
|
@ -34,9 +34,9 @@ func doCobol() {
|
||||||
log.DaemonMode(true)
|
log.DaemonMode(true)
|
||||||
|
|
||||||
log.Info(standardStart5("gopath", "cur name", "master", "user", "repo type"))
|
log.Info(standardStart5("gopath", "cur name", "master", "user", "repo type"))
|
||||||
repos := me.found.SortByGoPath()
|
all := me.found.SortByGoPath()
|
||||||
for repos.Scan() {
|
for all.Scan() {
|
||||||
repo := repos.Next()
|
repo := all.Next()
|
||||||
verifyPrint(repo)
|
verifyPrint(repo)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
func doRedoGoMod() {
|
func doRedoGoMod() {
|
||||||
me.forge.RillRedoGoMod()
|
me.forge.RillRedoGoMod()
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
repos := me.forge.Repos.SortByGoPath()
|
all := me.forge.Repos.SortByGoPath()
|
||||||
for repos.Scan() {
|
for all.Scan() {
|
||||||
repo := repos.Next()
|
repo := all.Next()
|
||||||
if !repo.IsValid() {
|
if !repo.IsValid() {
|
||||||
log.Printf("%10s %-50s", "old?", repo.GetGoPath())
|
log.Printf("%10s %-50s", "old?", repo.GetGoPath())
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -22,9 +22,9 @@ func findConfig() bool {
|
||||||
|
|
||||||
// finds config repos that are writable
|
// finds config repos that are writable
|
||||||
func findConfigMine() {
|
func findConfigMine() {
|
||||||
loop := me.forge.Config.SortByGoPath()
|
all := me.forge.Config.SortByGoPath()
|
||||||
for loop.Scan() {
|
for all.Scan() {
|
||||||
r := loop.Next()
|
r := all.Next()
|
||||||
gopath := r.GoPath
|
gopath := r.GoPath
|
||||||
if r.GetDirectory() {
|
if r.GetDirectory() {
|
||||||
continue
|
continue
|
||||||
|
@ -39,9 +39,9 @@ func findConfigMine() {
|
||||||
|
|
||||||
// get everything in your config
|
// get everything in your config
|
||||||
func findConfigAll() {
|
func findConfigAll() {
|
||||||
loop := me.forge.Config.SortByGoPath()
|
all := me.forge.Config.SortByGoPath()
|
||||||
for loop.Scan() {
|
for all.Scan() {
|
||||||
r := loop.Next()
|
r := all.Next()
|
||||||
gopath := r.GoPath
|
gopath := r.GoPath
|
||||||
if r.GetDirectory() {
|
if r.GetDirectory() {
|
||||||
continue
|
continue
|
||||||
|
|
24
findRepos.go
24
findRepos.go
|
@ -35,9 +35,9 @@ func findRepos() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func findPrivate() {
|
func findPrivate() {
|
||||||
repos := me.forge.Repos.SortByGoPath()
|
all := me.forge.Repos.SortByGoPath()
|
||||||
for repos.Scan() {
|
for all.Scan() {
|
||||||
repo := repos.Next()
|
repo := all.Next()
|
||||||
if me.forge.Config.IsPrivate(repo.GoPath) {
|
if me.forge.Config.IsPrivate(repo.GoPath) {
|
||||||
me.found.AppendUniqueGoPath(repo)
|
me.found.AppendUniqueGoPath(repo)
|
||||||
}
|
}
|
||||||
|
@ -47,9 +47,9 @@ func findPrivate() {
|
||||||
// finds repos that are writable
|
// finds repos that are writable
|
||||||
func findMine() {
|
func findMine() {
|
||||||
// log.Printf("get mine %s\n", me.forge.GetGoSrc())
|
// log.Printf("get mine %s\n", me.forge.GetGoSrc())
|
||||||
repos := me.forge.Repos.SortByGoPath()
|
all := me.forge.Repos.SortByGoPath()
|
||||||
for repos.Scan() {
|
for all.Scan() {
|
||||||
repo := repos.Next()
|
repo := all.Next()
|
||||||
if me.forge.Config.IsWritable(repo.GoPath) {
|
if me.forge.Config.IsWritable(repo.GoPath) {
|
||||||
me.found.AppendUniqueGoPath(repo)
|
me.found.AppendUniqueGoPath(repo)
|
||||||
}
|
}
|
||||||
|
@ -59,9 +59,9 @@ func findMine() {
|
||||||
// finds repos that are writable
|
// finds repos that are writable
|
||||||
func findFavorites() {
|
func findFavorites() {
|
||||||
// log.Printf("get favorites %s\n", me.forge.GetGoSrc())
|
// log.Printf("get favorites %s\n", me.forge.GetGoSrc())
|
||||||
repos := me.forge.Repos.SortByGoPath()
|
all := me.forge.Repos.SortByGoPath()
|
||||||
for repos.Scan() {
|
for all.Scan() {
|
||||||
repo := repos.Next()
|
repo := all.Next()
|
||||||
if me.forge.Config.IsFavorite(repo.GoPath) {
|
if me.forge.Config.IsFavorite(repo.GoPath) {
|
||||||
me.found.AppendUniqueGoPath(repo)
|
me.found.AppendUniqueGoPath(repo)
|
||||||
}
|
}
|
||||||
|
@ -70,9 +70,9 @@ func findFavorites() {
|
||||||
|
|
||||||
func findAll() {
|
func findAll() {
|
||||||
var configsave bool
|
var configsave bool
|
||||||
repos := me.forge.Repos.SortByGoPath()
|
all := me.forge.Repos.SortByGoPath()
|
||||||
for repos.Scan() {
|
for all.Scan() {
|
||||||
repo := repos.Next()
|
repo := all.Next()
|
||||||
if me.forge.Config.IsReadOnly(repo.GoPath) && !argv.FindReadOnly {
|
if me.forge.Config.IsReadOnly(repo.GoPath) && !argv.FindReadOnly {
|
||||||
if repo.ReadOnly {
|
if repo.ReadOnly {
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -57,9 +57,9 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
|
||||||
s.grid.NewButton("Update Patch Counts", func() {
|
s.grid.NewButton("Update Patch Counts", func() {
|
||||||
var repocount, patchcount int
|
var repocount, patchcount int
|
||||||
// broken after move to forge protobuf
|
// broken after move to forge protobuf
|
||||||
loop := me.forge.Repos.SortByGoPath()
|
all := me.forge.Repos.SortByGoPath()
|
||||||
for loop.Scan() {
|
for all.Scan() {
|
||||||
repo := loop.Next()
|
repo := all.Next()
|
||||||
if repo.GetReadOnly() {
|
if repo.GetReadOnly() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -75,9 +75,9 @@ func submitPatchesBox(box *gui.Node) *patchSummary {
|
||||||
repocount = 0
|
repocount = 0
|
||||||
patchcount = 0
|
patchcount = 0
|
||||||
// broken after move to forge protobuf
|
// broken after move to forge protobuf
|
||||||
loop = me.forge.Repos.SortByGoPath()
|
all = me.forge.Repos.SortByGoPath()
|
||||||
for loop.Scan() {
|
for all.Scan() {
|
||||||
repo := loop.Next()
|
repo := all.Next()
|
||||||
if repo.GetReadOnly() {
|
if repo.GetReadOnly() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -189,9 +189,9 @@ func (s *patchSummary) Update() {
|
||||||
var userT, develT, masterT int
|
var userT, develT, masterT int
|
||||||
// var userP, develP, masterP int
|
// var userP, develP, masterP int
|
||||||
// broken after move to forge protobuf
|
// broken after move to forge protobuf
|
||||||
loop := me.forge.Repos.SortByGoPath()
|
all := me.forge.Repos.SortByGoPath()
|
||||||
for loop.Scan() {
|
for all.Scan() {
|
||||||
repo := loop.Next()
|
repo := all.Next()
|
||||||
total += 1
|
total += 1
|
||||||
if repo.IsDirty() {
|
if repo.IsDirty() {
|
||||||
dirty += 1
|
dirty += 1
|
||||||
|
|
Loading…
Reference in New Issue