diff options
Diffstat (limited to 'rill.go')
| -rw-r--r-- | rill.go | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -10,6 +10,7 @@ import ( "go.wit.com/log" ) +/* // rill is awesome. long live rill // attempt scan with rill func (f *Forge) rillUpdate(pool1 int, pool2 int) (int, error) { @@ -39,7 +40,9 @@ func (f *Forge) rillUpdate(pool1 int, pool2 int) (int, error) { return counter, err } +*/ +/* func (f *Forge) updateRepo(repo *gitpb.Repo) error { if !repo.IsValidDir() { log.Printf("%10s %-50s gopath=%s\n", "git dir is missing\n", repo.FullPath, repo.GetNamespace()) @@ -47,14 +50,12 @@ func (f *Forge) updateRepo(repo *gitpb.Repo) error { return nil } - if repo.HasChanged() { - // log.Info("repo changed ", repo.FullPath, repo.StateChange) - if err := repo.ReloadCheck(); err != nil { - return err - } - } else { - // log.Info("repo did not change", repo.FullPath, repo.StateChange) + if err := repo.HasChanged(); err != nil { + // something changed in the repo + return err } + + // log.Info("repo did not change", repo.FullPath, repo.StateChange) if f.Config.IsReadOnly(repo.GetGoPath()) { if repo.ReadOnly { } else { @@ -64,6 +65,7 @@ func (f *Forge) updateRepo(repo *gitpb.Repo) error { } return nil } +*/ var RillX int = 10 var RillY int = 20 @@ -95,11 +97,10 @@ func (f *Forge) RillReload() int { }) rill.ForEach(dirs, RillY, func(repo *gitpb.Repo) error { - if !repo.HasChanged() { - return nil + if err := repo.HasChanged(); err != nil { + counter += 1 + return err } - repo.ReloadCheck() - counter += 1 return nil }) |
